src/aria/pageEngine/utils/PageConfigHelper.js
function (lazy) {
            var dependencies = {
                templates : [],
                classes : [],
                modules : {
                    page : [],
                    common : []
                },
                css : []
            };
            var pageComposition = this._pageConfig.pageComposition;
            var placeholders = pageComposition.placeholders || {};
            var typeUtils = ariaUtilsType;

            if (!lazy) {
                this._utils.addIfMissing(pageComposition.template, dependencies.templates);
                if (pageComposition.css) {
                    dependencies.css = pageComposition.css.slice(0);
                }
            }

            for (var placeholderName in placeholders) {
                if (placeholders.hasOwnProperty(placeholderName)) {
                    var singlePlaceholderArray = placeholders[placeholderName];

                    if (!typeUtils.isArray(singlePlaceholderArray)) {
                        singlePlaceholderArray = [singlePlaceholderArray];
                    }

                    for (var i = 0; i < singlePlaceholderArray.length; i += 1) {
                        this._addPlaceholderDependencies(singlePlaceholderArray[i], dependencies, lazy);
                    }
                }
            }
            return dependencies;
        }
function (lazy) {
            var dependencies = {
                templates : [],
                classes : [],
                modules : {
                    page : [],
                    common : []
                },
                css : []
            };
            var pageComposition = this._pageConfig.pageComposition;
            var placeholders = pageComposition.placeholders || {};
            var typeUtils = ariaUtilsType;

            if (!lazy) {
                this._utils.addIfMissing(pageComposition.template, dependencies.templates);
                if (pageComposition.css) {
                    dependencies.css = pageComposition.css.slice(0);
                }
            }

            for (var placeholderName in placeholders) {
                if (placeholders.hasOwnProperty(placeholderName)) {
                    var singlePlaceholderArray = placeholders[placeholderName];

                    if (!typeUtils.isArray(singlePlaceholderArray)) {
                        singlePlaceholderArray = [singlePlaceholderArray];
                    }

                    for (var i = 0; i < singlePlaceholderArray.length; i += 1) {
                        this._addPlaceholderDependencies(singlePlaceholderArray[i], dependencies, lazy);
                    }
                }
            }
            return dependencies;
        }
function ( lazy ) { var dependencies = { templates : [ ] , classes : [ ] , modules : { page : [ ] , common : [ ] } , css : [ ] } ; var pageComposition = this . _pageConfig . pageComposition ; var placeholders = pageComposition . placeholders || { } ; var typeUtils = ariaUtilsType ; if ( ! lazy ) { this . _utils . addIfMissing ( pageComposition . template , dependencies . templates ) ; if ( pageComposition . css ) { dependencies . css = pageComposition . css . slice ( 0 ) ; } } for ( var placeholderName in placeholders ) { if ( placeholders . hasOwnProperty ( placeholderName ) ) { var singlePlaceholderArray = placeholders [ placeholderName ] ; if ( ! typeUtils . isArray ( singlePlaceholderArray ) ) { singlePlaceholderArray = [ singlePlaceholderArray ] ; } for ( var i = 0 ; i < singlePlaceholderArray . length ; i += 1 ) { this . _addPlaceholderDependencies ( singlePlaceholderArray [ i ] , dependencies , lazy ) ; } } } return dependencies ; }
Extract the dependencies of a page. It'll go through all submodule and placeholders and return the list of
classpaths to be loaded in the page
@return {Object} It contains the properties:<br/>
<ul>
<li>templates : Array containing the classpaths of the templates to load</li>
<li>classes : Array containing the classpaths of the module controllers to load</li>
<li>modules : Object containing page-specific and common modules refpaths</li>
</ul>
Extract the dependencies of a page . It ll go through all submodule and placeholders and return the list of classpaths to be loaded in the page