@erickxavier/no-js 1.4.2 → 1.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erickxavier/no-js",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "The HTML-first reactive framework — build dynamic web apps with just HTML attributes, no JavaScript required",
5
5
  "main": "dist/cjs/no.js",
6
6
  "module": "dist/esm/no.js",
package/src/index.js CHANGED
@@ -90,6 +90,8 @@ const NoJS = {
90
90
 
91
91
  async init(root) {
92
92
  if (typeof document === "undefined") return;
93
+ if (NoJS._initialized) return;
94
+ NoJS._initialized = true;
93
95
  root = root || document.body;
94
96
  _log("Initializing...");
95
97
 
@@ -216,7 +218,7 @@ const NoJS = {
216
218
  resolve,
217
219
 
218
220
  // Version
219
- version: "1.4.2",
221
+ version: "1.4.3",
220
222
  };
221
223
 
222
224
  export default NoJS;