Browse Source

REFA, IMPRO: removing the property "_wenity"

The property didn't introduced any additional functionality.
dev-feat-component_preview
chris 2 months ago
parent
commit
b53ffc3571
  1. 17
      src/component.js

17
src/component.js

@ -15,10 +15,6 @@ class Component extends StyleAndScriptStoringComponent {
* @type {boolean} * @type {boolean}
*/ */
_isCompel; _isCompel;
/**
* @type {WebTrinity}
*/
_wenity;
/** /**
* @type {Array<any>} * @type {Array<any>}
*/ */
@ -425,7 +421,7 @@ class Component extends StyleAndScriptStoringComponent {
.join(this._modifier); .join(this._modifier);
} }
this._wenity = new WebTrinity(); let _wenity = new WebTrinity();
if (!styleStore) { if (!styleStore) {
styleStore = this._stylesExtStore; styleStore = this._stylesExtStore;
@ -543,18 +539,17 @@ class Component extends StyleAndScriptStoringComponent {
executeOnExtStoreTypeCollectedTriple((est) => dealCollected(funcCollections, est)); executeOnExtStoreTypeCollectedTriple((est) => dealCollected(funcCollections, est));
} else { } else {
this._wenity.js = funcCollections; _wenity.js = funcCollections;
this._wenity.css = styleCollection; _wenity.css = styleCollection;
} }
this._wenity.html = this._element; _wenity.html = this._element;
for (let i = 0; i < this._toRegister.length; i++) { for (const group of this._toRegister) {
const group = this._toRegister[i];
Page.subscribeComponentToGroup(group, this._compName) Page.subscribeComponentToGroup(group, this._compName)
} }
return this._wenity; return _wenity;
} }

Loading…
Cancel
Save