src/aria/templates/CSSMgr.js
function (tplClasspath, cssClasspath) {
            this.$assert(230, tplClasspath && cssClasspath);
            var removeUtil = ariaUtilsArray.remove;

            // There should be someone using this css
            var usage = this.__cssUsage[cssClasspath];
            if (usage && usage.length) {
                removeUtil(usage, tplClasspath);
                removeUtil(this.__pathsLoaded, cssClasspath);

                if (!usage.length) {
                    // No other templates depend on this class
                    delete this.__cssUsage[cssClasspath];
                    delete this.__textLoaded[cssClasspath];
                    // keep the prefix in case the css comes back
                }
            } // else should never be reached
        }
function (tplClasspath, cssClasspath) {
            this.$assert(230, tplClasspath && cssClasspath);
            var removeUtil = ariaUtilsArray.remove;

            // There should be someone using this css
            var usage = this.__cssUsage[cssClasspath];
            if (usage && usage.length) {
                removeUtil(usage, tplClasspath);
                removeUtil(this.__pathsLoaded, cssClasspath);

                if (!usage.length) {
                    // No other templates depend on this class
                    delete this.__cssUsage[cssClasspath];
                    delete this.__textLoaded[cssClasspath];
                    // keep the prefix in case the css comes back
                }
            } // else should never be reached
        }
function ( tplClasspath , cssClasspath ) { this . $assert ( 230 , tplClasspath && cssClasspath ) ; var removeUtil = ariaUtilsArray . remove ; // There should be someone using this css var usage = this . __cssUsage [ cssClasspath ] ; if ( usage && usage . length ) { removeUtil ( usage , tplClasspath ) ; removeUtil ( this . __pathsLoaded , cssClasspath ) ; if ( ! usage . length ) { // No other templates depend on this class delete this . __cssUsage [ cssClasspath ] ; delete this . __textLoaded [ cssClasspath ] ; // keep the prefix in case the css comes back } } // else should never be reached }
Update the private properties to mark a CSS template as unloaded. It won't update the list of prefixes
@param {String} tplClasspath Template classpath
@param {String} cssClasspath CSS template classpath
@private
Update the private properties to mark a CSS template as unloaded . It won t update the list of prefixes