src/aria/templates/CSSMgr.js
function (tplCtxt) {
            this.$assert(133, tplCtxt.$TemplateCtxt);

            var toLoad = tplCtxt.getCSSDependencies();
            var tplClasspath = tplCtxt.tplClasspath;
            var loadResult = this.loadClassPathDependencies(tplClasspath, toLoad, {
                isTemplate : true
            });

            if (loadResult.changes) {
                this.$raiseEvent({
                    name : "styleChange",
                    templateClasspath : tplClasspath
                });
            }

            this.$raiseEvent({
                name : "dependenciesLoaded",
                templateClasspath : tplClasspath
            });

            return loadResult.classes;
        }
function (tplCtxt) {
            this.$assert(133, tplCtxt.$TemplateCtxt);

            var toLoad = tplCtxt.getCSSDependencies();
            var tplClasspath = tplCtxt.tplClasspath;
            var loadResult = this.loadClassPathDependencies(tplClasspath, toLoad, {
                isTemplate : true
            });

            if (loadResult.changes) {
                this.$raiseEvent({
                    name : "styleChange",
                    templateClasspath : tplClasspath
                });
            }

            this.$raiseEvent({
                name : "dependenciesLoaded",
                templateClasspath : tplClasspath
            });

            return loadResult.classes;
        }
function ( tplCtxt ) { this . $assert ( 133 , tplCtxt . $TemplateCtxt ) ; var toLoad = tplCtxt . getCSSDependencies ( ) ; var tplClasspath = tplCtxt . tplClasspath ; var loadResult = this . loadClassPathDependencies ( tplClasspath , toLoad , { isTemplate : true } ) ; if ( loadResult . changes ) { this . $raiseEvent ( { name : "styleChange" , templateClasspath : tplClasspath } ) ; } this . $raiseEvent ( { name : "dependenciesLoaded" , templateClasspath : tplClasspath } ) ; return loadResult . classes ; }
Load the CSS dependencies of a template, it will prefix the CSS selectors and generate a style tag in the
head.
@param {aria.templates.TemplateCtxt} tplCtxt template context
@return {Array} Array of class prefixes
Load the CSS dependencies of a template it will prefix the CSS selectors and generate a style tag in the head .