src/aria/pageEngine/utils/PageConfigHelper.js
function (placeholder, dependencies, lazy) {
            var modules = this._pageModules, refpath, moduleDesc, typeUtils = ariaUtilsType;
            if (!typeUtils.isObject(placeholder)) {
                return;
            }
            var isLazy = (placeholder.lazy);
            if ((lazy && !isLazy) || (!lazy && isLazy)) {
                return;
            }
            if ("module" in placeholder) {
                refpath = placeholder.module;
                if (refpath.match(/^common:/)) {
                    this._utils.addIfMissing(refpath.replace(/^common:/, ""), dependencies.modules.common);
                } else {
                    moduleDesc = modules[refpath];
                    if (moduleDesc) {
                        this._utils.addIfMissing(moduleDesc.classpath, dependencies.classes);
                        this._utils.addIfMissing(refpath, dependencies.modules.page);
                    }
                }
            }
            if ("template" in placeholder) {
                this._utils.addIfMissing(placeholder.template, dependencies.templates);
            }
            if ("css" in placeholder) {
                this._utils.wiseConcat(dependencies.css, placeholder.css);
            }
        }
function (placeholder, dependencies, lazy) {
            var modules = this._pageModules, refpath, moduleDesc, typeUtils = ariaUtilsType;
            if (!typeUtils.isObject(placeholder)) {
                return;
            }
            var isLazy = (placeholder.lazy);
            if ((lazy && !isLazy) || (!lazy && isLazy)) {
                return;
            }
            if ("module" in placeholder) {
                refpath = placeholder.module;
                if (refpath.match(/^common:/)) {
                    this._utils.addIfMissing(refpath.replace(/^common:/, ""), dependencies.modules.common);
                } else {
                    moduleDesc = modules[refpath];
                    if (moduleDesc) {
                        this._utils.addIfMissing(moduleDesc.classpath, dependencies.classes);
                        this._utils.addIfMissing(refpath, dependencies.modules.page);
                    }
                }
            }
            if ("template" in placeholder) {
                this._utils.addIfMissing(placeholder.template, dependencies.templates);
            }
            if ("css" in placeholder) {
                this._utils.wiseConcat(dependencies.css, placeholder.css);
            }
        }
function ( placeholder , dependencies , lazy ) { var modules = this . _pageModules , refpath , moduleDesc , typeUtils = ariaUtilsType ; if ( ! typeUtils . isObject ( placeholder ) ) { return ; } var isLazy = ( placeholder . lazy ) ; if ( ( lazy && ! isLazy ) || ( ! lazy && isLazy ) ) { return ; } if ( "module" in placeholder ) { refpath = placeholder . module ; if ( refpath . match ( / ^common: / ) ) { this . _utils . addIfMissing ( refpath . replace ( / ^common: / , "" ) , dependencies . modules . common ) ; } else { moduleDesc = modules [ refpath ] ; if ( moduleDesc ) { this . _utils . addIfMissing ( moduleDesc . classpath , dependencies . classes ) ; this . _utils . addIfMissing ( refpath , dependencies . modules . page ) ; } } } if ( "template" in placeholder ) { this . _utils . addIfMissing ( placeholder . template , dependencies . templates ) ; } if ( "css" in placeholder ) { this . _utils . wiseConcat ( dependencies . css , placeholder . css ) ; } }
Extract the dependencies from a placeholder definition and add them to dependencies argument
@param {aria.pageEngine.CfgBeans:Placeholder} placeholder
@param {Object} dependencies
@private
Extract the dependencies from a placeholder definition and add them to dependencies argument