lib/mia-js.js
function (initFunction) {
        if (_.isFunction(initFunction)) {
            Logger.info("Run init function");
            _customInitFuncton = initFunction;
            return initFunction(appHttp)
                .then(function () {
                    return initFunction(appHttps);
                });
        }
        return Q();
    }
function (initFunction) {
        if (_.isFunction(initFunction)) {
            Logger.info("Run init function");
            _customInitFuncton = initFunction;
            return initFunction(appHttp)
                .then(function () {
                    return initFunction(appHttps);
                });
        }
        return Q();
    }
function ( initFunction ) { if ( _ . isFunction ( initFunction ) ) { Logger . info ( "Run init function" ) ; _customInitFuncton = initFunction ; return initFunction ( appHttp ) . then ( function ( ) { return initFunction ( appHttps ) ; } ) ; } return Q ( ) ; }
Call and set custom init function to global
@param initFunction
@returns {*}
@private
Call and set custom init function to global