diff --git a/src/component.js b/src/component.js index 384266d..9c8e019 100644 --- a/src/component.js +++ b/src/component.js @@ -18,7 +18,7 @@ class Component extends StyleAndScriptStoringComponent { /** * @type {boolean} */ - #isCompel; + _isCompel; /** * @type {WebTrinity} */ @@ -40,7 +40,7 @@ class Component extends StyleAndScriptStoringComponent { */ constructor(element, attr = {}) { super(element, attr); - this.#isCompel = false; + this._isCompel = false; this._isContextMenu = false; this._modifier = new Modifier() @@ -137,7 +137,7 @@ class Component extends StyleAndScriptStoringComponent { */ isHigherComponent() { this.subscribeOnGenerate(CommonCompelGroups.HIGHER_COMPEL); - this.#isCompel = true; + this._isCompel = true; this.addStyleClass("compel-higher"); return this.setAttribute("data-compel-isHCompel", "true") } @@ -507,7 +507,12 @@ class Component extends StyleAndScriptStoringComponent { } } - if (this.#isCompel) { + if (this._isCompel) { + /** + * + * @param {Map} map + * @param {ExtStorageType} extStoreType + */ function dealCollected(map, extStoreType) { if (map.has(extStoreType)) { let collectionScriptTag = generateAndFillScriptTag(map.get(extStoreType)); @@ -524,6 +529,7 @@ class Component extends StyleAndScriptStoringComponent { } } } + executeOnExtStoreTypeCollectedTriple((est) => dealCollected(funcCollections, est)); } else {