src/aria/templates/CSSMgr.js
function (classpath, dependencies) {
            if (this.__cssDependencies[classpath]) {
                dependencies = this.__cssDependencies[classpath];
            } else {

                // Look at in the parents for the css inheritance.
                var tpl = Aria.getClassRef(classpath);
                var css = {};
                if (dependencies) {
                    for (var i = 0, ii = dependencies.length; i < ii; i++) {
                        css[Aria.getClasspath(dependencies[i])] = true;
                    }
                }

                tpl = tpl.superclass;
                while (tpl) {
                    var $css = tpl.$css;
                    if ($css) {
                        for (var i = 0, ii = $css.length; i < ii; i++) {
                            css[Aria.getClasspath($css[i])] = true;
                        }
                    }
                    tpl = tpl.constructor.superclass;
                }

                dependencies = ariaUtilsObject.keys(css);

                // Store the css dependencies for performance reason
                this.__cssDependencies[classpath] = dependencies;
            }

            var contextArgs = {
                isWidget : true
            };

            this.loadClassPathDependencies(classpath, dependencies, contextArgs);
        }
function (classpath, dependencies) {
            if (this.__cssDependencies[classpath]) {
                dependencies = this.__cssDependencies[classpath];
            } else {

                // Look at in the parents for the css inheritance.
                var tpl = Aria.getClassRef(classpath);
                var css = {};
                if (dependencies) {
                    for (var i = 0, ii = dependencies.length; i < ii; i++) {
                        css[Aria.getClasspath(dependencies[i])] = true;
                    }
                }

                tpl = tpl.superclass;
                while (tpl) {
                    var $css = tpl.$css;
                    if ($css) {
                        for (var i = 0, ii = $css.length; i < ii; i++) {
                            css[Aria.getClasspath($css[i])] = true;
                        }
                    }
                    tpl = tpl.constructor.superclass;
                }

                dependencies = ariaUtilsObject.keys(css);

                // Store the css dependencies for performance reason
                this.__cssDependencies[classpath] = dependencies;
            }

            var contextArgs = {
                isWidget : true
            };

            this.loadClassPathDependencies(classpath, dependencies, contextArgs);
        }
function ( classpath , dependencies ) { if ( this . __cssDependencies [ classpath ] ) { dependencies = this . __cssDependencies [ classpath ] ; } else { // Look at in the parents for the css inheritance. var tpl = Aria . getClassRef ( classpath ) ; var css = { } ; if ( dependencies ) { for ( var i = 0 , ii = dependencies . length ; i < ii ; i ++ ) { css [ Aria . getClasspath ( dependencies [ i ] ) ] = true ; } } tpl = tpl . superclass ; while ( tpl ) { var $css = tpl . $css ; if ( $css ) { for ( var i = 0 , ii = $css . length ; i < ii ; i ++ ) { css [ Aria . getClasspath ( $css [ i ] ) ] = true ; } } tpl = tpl . constructor . superclass ; } dependencies = ariaUtilsObject . keys ( css ) ; // Store the css dependencies for performance reason this . __cssDependencies [ classpath ] = dependencies ; } var contextArgs = { isWidget : true } ; this . loadClassPathDependencies ( classpath , dependencies , contextArgs ) ; }
Load the CSS dependencies of a Widget. It won't prefix the CSS selectors
@param {String} classpath Classpath of the widget
@param {Array} dependencies Array of CSS template classpaths to be loaded
Load the CSS dependencies of a Widget . It won t prefix the CSS selectors