src/sap.ui.fl/src/sap/ui/fl/Utils.js
function(sModuleName) {
			//TODO: get rid of require async as soon as sap.ui.require has learned Promises as return value
			return new Promise(function(fnResolve, fnReject) {
				sap.ui.require([sModuleName], function(oModule) {
					fnResolve(oModule);
				},
				function(oError) {
					fnReject(oError);
				});
			});
		}
function(sModuleName) {
			//TODO: get rid of require async as soon as sap.ui.require has learned Promises as return value
			return new Promise(function(fnResolve, fnReject) {
				sap.ui.require([sModuleName], function(oModule) {
					fnResolve(oModule);
				},
				function(oError) {
					fnReject(oError);
				});
			});
		}
function ( sModuleName ) { //TODO: get rid of require async as soon as sap.ui.require has learned Promises as return value return new Promise ( function ( fnResolve , fnReject ) { sap . ui . require ( [ sModuleName ] , function ( oModule ) { fnResolve ( oModule ) ; } , function ( oError ) { fnReject ( oError ) ; } ) ; } ) ; }
Wraps the async sap.ui.require call into a Promise.
@param {string} sModuleName Name of the required module
@returns {Promise} Returns a promise.
Wraps the async sap . ui . require call into a Promise .