@skirbi/sugar 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changes +4 -0
- package/lib/htmlelement.mjs +7 -1
- package/lib/index.mjs +1 -1
- package/package.json +1 -1
package/Changes
CHANGED
package/lib/htmlelement.mjs
CHANGED
|
@@ -45,8 +45,14 @@ export class HTMLElementSugar extends HTMLElement {
|
|
|
45
45
|
* multiple times on the component is ok, but discouraged.
|
|
46
46
|
*/
|
|
47
47
|
static init() {
|
|
48
|
+
|
|
48
49
|
this.checkTag();
|
|
49
|
-
|
|
50
|
+
|
|
51
|
+
if (!Object.hasOwn(this, '_sugarInitialized')) {
|
|
52
|
+
this.checkAttributes();
|
|
53
|
+
this._sugarInitialized = true;
|
|
54
|
+
}
|
|
55
|
+
|
|
50
56
|
this.checkTemplate();
|
|
51
57
|
}
|
|
52
58
|
|
package/lib/index.mjs
CHANGED
package/package.json
CHANGED