Browse Source

REFA,RENAME,DOC: Renamed several functions for readability

master
chris 2 months ago
parent
commit
a7fcb5a3ca
  1. 12
      src/component.js
  2. 8
      src/context/extStore.js

12
src/component.js

@ -327,9 +327,9 @@ class Component extends StyleAndScriptStoringComponent {
_processStyles(extStore = null) { _processStyles(extStore = null) {
if (!extStore) { if (!extStore) {
extStore = this._stylesExtStore.updateForGeneralStyling(); extStore = this._stylesExtStore.setupForGeneralStyling();
} else { } else {
extStore.updateForGeneralStyling(); extStore.setupForGeneralStyling();
} }
/** /**
@ -387,7 +387,7 @@ class Component extends StyleAndScriptStoringComponent {
/* Check/Ensure proper ExtStorageType for following comparison */ /* Check/Ensure proper ExtStorageType for following comparison */
let refESType = ( let refESType = (
ssd._extStore && ssd._extStore._type ssd._extStore && ssd._extStore._type
? ssd._extStore.updateForGeneralStyling()._type ? ssd._extStore.setupForGeneralStyling()._type
: extStore._type : extStore._type
); );
@ -423,9 +423,9 @@ class Component extends StyleAndScriptStoringComponent {
_processFunctions(extStore = null) { _processFunctions(extStore = null) {
if (!extStore) { if (!extStore) {
extStore = this._functionsExtStore.updateForFunctions(); extStore = this._functionsExtStore.setupForFunctions();
} else { } else {
extStore.updateForFunctions(); extStore.setupForFunctions();
} }
const forCollection = new Map(); const forCollection = new Map();
@ -438,7 +438,7 @@ class Component extends StyleAndScriptStoringComponent {
let refESType = ( let refESType = (
ssd._extStore && ssd._extStore._type ssd._extStore && ssd._extStore._type
? ssd._extStore.updateForFunctions()._type ? ssd._extStore.setupForFunctions()._type
: extStore._type : extStore._type
); );

8
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) * @returns {ExtStorage} this extStore (updated if rules were used, that don't work for functions)
*/ */
updateForFunctions() { setupForFunctions() {
if (this._type === ExtStoreType.INTERNALIZED_WITHIN) { if (this._type === ExtStoreType.INTERNALIZED_WITHIN) {
console.log("Updated Functions extstore from INTERNALIZED_WITHIN to INDIVIDUALLY_BEFORE") console.log("Updated Functions extstore from INTERNALIZED_WITHIN to INDIVIDUALLY_BEFORE")
this._type = ExtStoreType.INDIVIDUALLY_BEFORE; this._type = ExtStoreType.INDIVIDUALLY_BEFORE;
@ -189,8 +189,8 @@ class ExtStorage {
* *
* @returns {ExtStorage} * @returns {ExtStorage}
*/ */
updateForGeneralStyling() {
switch (this._type) { switch (this._type) {
setupForGeneralStyling() {
case ExtStoreType.INTERNALIZED_WITHIN: case ExtStoreType.INTERNALIZED_WITHIN:
break; break;
@ -230,7 +230,7 @@ class ExtStorage {
* Currently it works the same as the "updateForFunctions()" since the same rules won't work. * 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) * @returns {ExtStorage} this extStore (updated if rules were used, that won't work for StyleClasses)
*/ */
updateForStyleClass() { setupForStyleClass() {
/* /*
const positionedAfter = [ const positionedAfter = [
COLLECTED_DOC_FOOTER, COLLECTED_DOC_FOOTER,
@ -243,7 +243,7 @@ class ExtStorage {
} }
*/ */
return this.updateForGeneralStyling(); return this.setupForGeneralStyling();
} }
} }

Loading…
Cancel
Save