@schukai/monster 3.85.0 → 3.85.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,6 +29,7 @@ const datasourceLinkedElementSymbol = Symbol("datasourceLinkedElement");
29
29
  * @private
30
30
  */
31
31
  function handleDataSourceChanges() {
32
+
32
33
  if (!this[datasourceLinkedElementSymbol]) {
33
34
  return;
34
35
  }
@@ -45,7 +45,7 @@ const domReady = new Promise((resolve) => {
45
45
  });
46
46
 
47
47
  /**
48
- * This variable is a promise that is fulfilled as soon as the windows is available.
48
+ * This variable is a promise is fulfilled as soon as the windows is available.
49
49
  *
50
50
  * The load event fires when the entire page is loaded, including all dependent resources such as stylesheets,
51
51
  * assets, and images. Unlike DOMContentLoaded, which fires as soon as the DOM of the page is loaded,
@@ -63,11 +63,23 @@ class DeadMansSwitch extends Base {
63
63
  }
64
64
 
65
65
  clearTimeout(this[internalSymbol]["timer"]);
66
-
67
66
  initCallback.call(this);
68
67
 
69
68
  return this;
70
69
  }
70
+
71
+ /**
72
+ * @throws {Error} has already run
73
+ * @returns {DeadMansSwitch}
74
+ */
75
+ defuse() {
76
+ if (this[internalSymbol]["isAlreadyRun"] === true) {
77
+ throw new Error("has already run");
78
+ }
79
+
80
+ clearTimeout(this[internalSymbol]["timer"]);
81
+ return this;
82
+ }
71
83
  }
72
84
 
73
85
  /**