src/sap.ui.fl/src/sap/ui/fl/registry/ChangeHandlerRegistration.js
function () {
			var oCore = sap.ui.getCore();
			var oAlreadyLoadedLibraries = oCore.getLoadedLibraries();
			var aPromises = [];

			jQuery.each(oAlreadyLoadedLibraries, function (sLibraryName, oLibrary) {
				if (oLibrary.extensions && oLibrary.extensions.flChangeHandlers) {
					aPromises.push(this._registerFlexChangeHandlers(oLibrary.extensions.flChangeHandlers));
				}
			}.bind(this));

			oCore.attachLibraryChanged(this._handleLibraryRegistrationAfterFlexLibraryIsLoaded.bind(this));

			return Promise.all(aPromises);
		}
function () {
			var oCore = sap.ui.getCore();
			var oAlreadyLoadedLibraries = oCore.getLoadedLibraries();
			var aPromises = [];

			jQuery.each(oAlreadyLoadedLibraries, function (sLibraryName, oLibrary) {
				if (oLibrary.extensions && oLibrary.extensions.flChangeHandlers) {
					aPromises.push(this._registerFlexChangeHandlers(oLibrary.extensions.flChangeHandlers));
				}
			}.bind(this));

			oCore.attachLibraryChanged(this._handleLibraryRegistrationAfterFlexLibraryIsLoaded.bind(this));

			return Promise.all(aPromises);
		}
function ( ) { var oCore = sap . ui . getCore ( ) ; var oAlreadyLoadedLibraries = oCore . getLoadedLibraries ( ) ; var aPromises = [ ] ; jQuery . each ( oAlreadyLoadedLibraries , function ( sLibraryName , oLibrary ) { if ( oLibrary . extensions && oLibrary . extensions . flChangeHandlers ) { aPromises . push ( this . _registerFlexChangeHandlers ( oLibrary . extensions . flChangeHandlers ) ) ; } } . bind ( this ) ) ; oCore . attachLibraryChanged ( this . _handleLibraryRegistrationAfterFlexLibraryIsLoaded . bind ( this ) ) ; return Promise . all ( aPromises ) ; }
Detects already loaded libraries and registers defined changeHandlers.

@returns {Promise} Returns an empty promise when all changeHandlers from all liblraries are registered.
Detects already loaded libraries and registers defined changeHandlers .