src/aria/templates/CSSMgr.js
function () {
            // Remove the style tags from the DOM
            for (var tagName in this.__styleTagPool) {
                if (this.__styleTagPool.hasOwnProperty(tagName)) {
                    this.__styleTagPool[tagName].parentNode.removeChild(this.__styleTagPool[tagName]);
                }
            }
            if (this.__attachedToWindow) {
                ariaUtilsAriaWindow.detachWindow();
                this.__attachedToWindow = false;
            }
            this.__styleTagPool = {};

            // Reset the variables
            this.__textLoaded = {};
            this.__pathsLoaded = [];
            this.__prefixes = {};
            this.__cssUsage = {};
            this.__styleTagAssociation = {};
            this.__invalidClasspaths = {};
            this.__cssDependencies = {};

            // Reset also the singletons
            this.__PREFIX = this.classDefinition.$statics.__PREFIX;
            this.__NEXT_PREFIX_INDEX = this.classDefinition.$statics.__NEXT_PREFIX_INDEX;
            this.__NEXT_TAG_INDEX = this.classDefinition.$statics.__NEXT_TAG_INDEX;
            this.__TAG_PREFX = this.classDefinition.$statics.__TAG_PREFX;
        }
function () {
            // Remove the style tags from the DOM
            for (var tagName in this.__styleTagPool) {
                if (this.__styleTagPool.hasOwnProperty(tagName)) {
                    this.__styleTagPool[tagName].parentNode.removeChild(this.__styleTagPool[tagName]);
                }
            }
            if (this.__attachedToWindow) {
                ariaUtilsAriaWindow.detachWindow();
                this.__attachedToWindow = false;
            }
            this.__styleTagPool = {};

            // Reset the variables
            this.__textLoaded = {};
            this.__pathsLoaded = [];
            this.__prefixes = {};
            this.__cssUsage = {};
            this.__styleTagAssociation = {};
            this.__invalidClasspaths = {};
            this.__cssDependencies = {};

            // Reset also the singletons
            this.__PREFIX = this.classDefinition.$statics.__PREFIX;
            this.__NEXT_PREFIX_INDEX = this.classDefinition.$statics.__NEXT_PREFIX_INDEX;
            this.__NEXT_TAG_INDEX = this.classDefinition.$statics.__NEXT_TAG_INDEX;
            this.__TAG_PREFX = this.classDefinition.$statics.__TAG_PREFX;
        }
function ( ) { // Remove the style tags from the DOM for ( var tagName in this . __styleTagPool ) { if ( this . __styleTagPool . hasOwnProperty ( tagName ) ) { this . __styleTagPool [ tagName ] . parentNode . removeChild ( this . __styleTagPool [ tagName ] ) ; } } if ( this . __attachedToWindow ) { ariaUtilsAriaWindow . detachWindow ( ) ; this . __attachedToWindow = false ; } this . __styleTagPool = { } ; // Reset the variables this . __textLoaded = { } ; this . __pathsLoaded = [ ] ; this . __prefixes = { } ; this . __cssUsage = { } ; this . __styleTagAssociation = { } ; this . __invalidClasspaths = { } ; this . __cssDependencies = { } ; // Reset also the singletons this . __PREFIX = this . classDefinition . $statics . __PREFIX ; this . __NEXT_PREFIX_INDEX = this . classDefinition . $statics . __NEXT_PREFIX_INDEX ; this . __NEXT_TAG_INDEX = this . classDefinition . $statics . __NEXT_TAG_INDEX ; this . __TAG_PREFX = this . classDefinition . $statics . __TAG_PREFX ; }
Reset the singleton to it's initial state after creation.
Reset the singleton to it s initial state after creation .