src/aria/templates/CSSMgr.js
function (classpath, cssTemplates, unload, timestampNextTime) {
            var array = ariaUtilsArray, classMgr = ariaCoreClassMgr;
            for (var i = 0, length = cssTemplates.length; i < length; i++) {
                var cssClasspath = Aria.getClasspath(cssTemplates[i]);
                var usage = this.__globalUsage[cssClasspath];
                array.remove(usage, classpath);
                if (unload) {
                    classMgr.unloadClass(cssClasspath, timestampNextTime);
                    // only invalidate if someone else is using it
                    this.invalidate(cssClasspath, usage.length > 0);
                }
            }
        }
function (classpath, cssTemplates, unload, timestampNextTime) {
            var array = ariaUtilsArray, classMgr = ariaCoreClassMgr;
            for (var i = 0, length = cssTemplates.length; i < length; i++) {
                var cssClasspath = Aria.getClasspath(cssTemplates[i]);
                var usage = this.__globalUsage[cssClasspath];
                array.remove(usage, classpath);
                if (unload) {
                    classMgr.unloadClass(cssClasspath, timestampNextTime);
                    // only invalidate if someone else is using it
                    this.invalidate(cssClasspath, usage.length > 0);
                }
            }
        }
function ( classpath , cssTemplates , unload , timestampNextTime ) { var array = ariaUtilsArray , classMgr = ariaCoreClassMgr ; for ( var i = 0 , length = cssTemplates . length ; i < length ; i ++ ) { var cssClasspath = Aria . getClasspath ( cssTemplates [ i ] ) ; var usage = this . __globalUsage [ cssClasspath ] ; array . remove ( usage , classpath ) ; if ( unload ) { classMgr . unloadClass ( cssClasspath , timestampNextTime ) ; // only invalidate if someone else is using it this . invalidate ( cssClasspath , usage . length > 0 ) ; } } }
Unregister a link between a classpath and a CSSTemplate. This is used during CSS reload to identify if a CSS
has to be reloaded.
@param {String} classpath classpath that have a dependency on some css
@param {Array} cssTemplates classpaths or references
@param {Boolean} unload if true unload cssTemplate class as well and invalidate them
@param {Boolean} timestampNextTime if unload is asked, will trigger browser cache bypass for next load
Unregister a link between a classpath and a CSSTemplate . This is used during CSS reload to identify if a CSS has to be reloaded .