diff --git a/src/component.js b/src/component.js index 102c3d1..86e92d0 100644 --- a/src/component.js +++ b/src/component.js @@ -327,9 +327,9 @@ class Component extends StyleAndScriptStoringComponent { _processStyles(extStore = null) { if (!extStore) { - extStore = this._stylesExtStore.updateForGeneralStyling(); + extStore = this._stylesExtStore.setupForGeneralStyling(); } else { - extStore.updateForGeneralStyling(); + extStore.setupForGeneralStyling(); } /** @@ -387,7 +387,7 @@ class Component extends StyleAndScriptStoringComponent { /* Check/Ensure proper ExtStorageType for following comparison */ let refESType = ( ssd._extStore && ssd._extStore._type - ? ssd._extStore.updateForGeneralStyling()._type + ? ssd._extStore.setupForGeneralStyling()._type : extStore._type ); @@ -423,9 +423,9 @@ class Component extends StyleAndScriptStoringComponent { _processFunctions(extStore = null) { if (!extStore) { - extStore = this._functionsExtStore.updateForFunctions(); + extStore = this._functionsExtStore.setupForFunctions(); } else { - extStore.updateForFunctions(); + extStore.setupForFunctions(); } const forCollection = new Map(); @@ -438,7 +438,7 @@ class Component extends StyleAndScriptStoringComponent { let refESType = ( ssd._extStore && ssd._extStore._type - ? ssd._extStore.updateForFunctions()._type + ? ssd._extStore.setupForFunctions()._type : extStore._type ); diff --git a/src/context/extStore.js b/src/context/extStore.js index 1cd76cd..3695bbc 100644 --- a/src/context/extStore.js +++ b/src/context/extStore.js @@ -177,7 +177,7 @@ class ExtStorage { * * @returns {ExtStorage} this extStore (updated if rules were used, that don't work for functions) */ - updateForFunctions() { + setupForFunctions() { if (this._type === ExtStoreType.INTERNALIZED_WITHIN) { console.log("Updated Functions extstore from INTERNALIZED_WITHIN to INDIVIDUALLY_BEFORE") this._type = ExtStoreType.INDIVIDUALLY_BEFORE; @@ -189,8 +189,8 @@ class ExtStorage { * * @returns {ExtStorage} */ - updateForGeneralStyling() { switch (this._type) { + setupForGeneralStyling() { case ExtStoreType.INTERNALIZED_WITHIN: break; @@ -230,7 +230,7 @@ class ExtStorage { * Currently it works the same as the "updateForFunctions()" since the same rules won't work. * @returns {ExtStorage} this extStore (updated if rules were used, that won't work for StyleClasses) */ - updateForStyleClass() { + setupForStyleClass() { /* const positionedAfter = [ COLLECTED_DOC_FOOTER, @@ -243,7 +243,7 @@ class ExtStorage { } */ - return this.updateForGeneralStyling(); + return this.setupForGeneralStyling(); } }