powerpagestoolkit 1.1.1 → 1.1.2

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.
@@ -36,8 +36,8 @@ class DOMNodeReference {
36
36
  this.isLoaded = true;
37
37
 
38
38
  if (this.element.classList.contains("boolean-radio")) {
39
- this.yesRadio = new DOMNodeReference(`#${this.element.id}_1`);
40
- this.noRadio = new DOMNodeReference(`#${this.element.id}_0`);
39
+ this.yesRadio = await createDOMNodeReference(`#${this.element.id}_1`);
40
+ this.noRadio = await createDOMNodeReference(`#${this.element.id}_0`);
41
41
  }
42
42
 
43
43
  this.defaultDisplay = this.element.style.display || "block";
@@ -260,7 +260,7 @@ export default async function createDOMNodeReference(querySelector) {
260
260
  return new Proxy(instance, {
261
261
  get: (target, prop) => {
262
262
  if (prop == "init") return undefined;
263
-
263
+
264
264
  const value = target[prop];
265
265
  if (typeof value === "function" && prop !== "onceLoaded") {
266
266
  return (...args) => target.onceLoaded(() => value.apply(target, args));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerpagestoolkit",
3
- "version": "1.1.001",
3
+ "version": "1.1.002",
4
4
  "description": "Reference, manipulate, and engage with Power Pages sites through the nodes in the DOM; use a variety of custom methods that allow customizing your power pages site quicker and easier. ",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",