function hyphenateTexts(oControl) {
			if (!shouldControlHyphenate(oControl) || !shouldUseThirdParty()) {
				// no hyphenation needed
				oControl._mHyphenatedTexts = {};
				oControl._mUnhyphenatedTexts = {};
				return;
			}

			var mTexts = oControl.getTextsToBeHyphenated(),
				aChangedTextKeys = diffTexts(mTexts, oControl._mUnhyphenatedTexts);

			if (aChangedTextKeys.length > 0) {
				oControl._mUnhyphenatedTexts = mTexts;
				aChangedTextKeys.forEach(function(sKey) {
					delete oControl._mHyphenatedTexts[sKey];
				});

				var oHyphenation = Hyphenation.getInstance();
				if (!oHyphenation.isLanguageInitialized()) {
					oHyphenation.initialize().then(function () {

						var mDomRefs = oControl.isActive() ? oControl.getDomRefsForHyphenatedTexts() : null,
							bNeedInvalidate = false;

						aChangedTextKeys.forEach(function(sKey) {
							oControl._mHyphenatedTexts[sKey] = oHyphenation.hyphenate(mTexts[sKey]);

							if (mDomRefs && sKey in mDomRefs) {
								setNodeValue(mDomRefs[sKey], oControl._mHyphenatedTexts[sKey]);
							} else {
								bNeedInvalidate = true;
							}
						});

						if (bNeedInvalidate) {
							oControl.invalidate();
						}
					});
				} else {
					aChangedTextKeys.forEach(function(sKey) {
						oControl._mHyphenatedTexts[sKey] = oHyphenation.hyphenate(mTexts[sKey]);
					});
				}
			}
		}
/**
		 * Hyphenates all texts needed for the given control.
		 *
		 * @param {sap.m.IHyphenation} oControl The control whose texts need hyphenation
		 * @private
		 */
Hyphenates all texts needed for the given control.
@param {sap.m.IHyphenation} oControl The control whose texts need hyphenation
@private
Hyphenates all texts needed for the given control . @param { sap . m . IHyphenation } oControl The control whose texts need hyphenation @private
function hyphenateTexts(oControl) {
			if (!shouldControlHyphenate(oControl) || !shouldUseThirdParty()) {
				oControl._mHyphenatedTexts = {};
				oControl._mUnhyphenatedTexts = {};
				return;
			}
			var mTexts = oControl.getTextsToBeHyphenated(),
				aChangedTextKeys = diffTexts(mTexts, oControl._mUnhyphenatedTexts);
			if (aChangedTextKeys.length > 0) {
				oControl._mUnhyphenatedTexts = mTexts;
				aChangedTextKeys.forEach(function(sKey) {
					delete oControl._mHyphenatedTexts[sKey];
				});
				var oHyphenation = Hyphenation.getInstance();
				if (!oHyphenation.isLanguageInitialized()) {
					oHyphenation.initialize().then(function () {
						var mDomRefs = oControl.isActive() ? oControl.getDomRefsForHyphenatedTexts() : null,
							bNeedInvalidate = false;
						aChangedTextKeys.forEach(function(sKey) {
							oControl._mHyphenatedTexts[sKey] = oHyphenation.hyphenate(mTexts[sKey]);
							if (mDomRefs && sKey in mDomRefs) {
								setNodeValue(mDomRefs[sKey], oControl._mHyphenatedTexts[sKey]);
							} else {
								bNeedInvalidate = true;
							}
						});
						if (bNeedInvalidate) {
							oControl.invalidate();
						}
					});
				} else {
					aChangedTextKeys.forEach(function(sKey) {
						oControl._mHyphenatedTexts[sKey] = oHyphenation.hyphenate(mTexts[sKey]);
					});
				}
			}
		}
function hyphenateTexts ( oControl ) { if ( ! shouldControlHyphenate ( oControl ) || ! shouldUseThirdParty ( ) ) { oControl . _mHyphenatedTexts = { } ; oControl . _mUnhyphenatedTexts = { } ; return ; } var mTexts = oControl . getTextsToBeHyphenated ( ) , aChangedTextKeys = diffTexts ( mTexts , oControl . _mUnhyphenatedTexts ) ; if ( aChangedTextKeys . length > 0 ) { oControl . _mUnhyphenatedTexts = mTexts ; aChangedTextKeys . forEach ( function ( sKey ) { delete oControl . _mHyphenatedTexts [ sKey ] ; } ) ; var oHyphenation = Hyphenation . getInstance ( ) ; if ( ! oHyphenation . isLanguageInitialized ( ) ) { oHyphenation . initialize ( ) . then ( function ( ) { var mDomRefs = oControl . isActive ( ) ? oControl . getDomRefsForHyphenatedTexts ( ) : null , bNeedInvalidate = false ; aChangedTextKeys . forEach ( function ( sKey ) { oControl . _mHyphenatedTexts [ sKey ] = oHyphenation . hyphenate ( mTexts [ sKey ] ) ; if ( mDomRefs && sKey in mDomRefs ) { setNodeValue ( mDomRefs [ sKey ] , oControl . _mHyphenatedTexts [ sKey ] ) ; } else { bNeedInvalidate = true ; } } ) ; if ( bNeedInvalidate ) { oControl . invalidate ( ) ; } } ) ; } else { aChangedTextKeys . forEach ( function ( sKey ) { oControl . _mHyphenatedTexts [ sKey ] = oHyphenation . hyphenate ( mTexts [ sKey ] ) ; } ) ; } } }
Hyphenates all texts needed for the given control.
Hyphenates all texts needed for the given control .
// no hyphenation needed