@schukai/monster 3.73.3 → 3.73.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -156,7 +156,6 @@ class Updater extends Base {
156
156
 
157
157
  for (const type of this[internalSymbol].eventTypes) {
158
158
  // @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
159
-
160
159
  this[internalSymbol].element.addEventListener(
161
160
  type,
162
161
  getControlEventHandler.call(this),
@@ -745,9 +744,7 @@ function runUpdateContent(container, parts, subject) {
745
744
 
746
745
  /**
747
746
  * @private
748
- * @license AGPLv3
749
747
  * @since 1.8.0
750
- * @param {string} path
751
748
  * @param {object} change
752
749
  * @return {void}
753
750
  */
@@ -900,6 +897,10 @@ function handleInputControlAttributeUpdate(element, name, value) {
900
897
  * @param {NodeList|HTMLElement|Set<HTMLElement>} elements
901
898
  * @param {Symbol} symbol
902
899
  * @param {object} object
900
+ * @param {object} config
901
+ *
902
+ * Config: enableEventProcessing {boolean} - default: false - enables the event processing
903
+ *
903
904
  * @return {Promise[]}
904
905
  * @license AGPLv3
905
906
  * @since 1.23.0
@@ -908,7 +909,7 @@ function handleInputControlAttributeUpdate(element, name, value) {
908
909
  * @throws {TypeError} the context of the function is not an instance of HTMLElement
909
910
  * @throws {TypeError} symbol must be an instance of Symbol
910
911
  */
911
- function addObjectWithUpdaterToElement(elements, symbol, object) {
912
+ function addObjectWithUpdaterToElement(elements, symbol, object, config = {}) {
912
913
  if (!(this instanceof HTMLElement)) {
913
914
  throw new TypeError(
914
915
  "the context of this function must be an instance of HTMLElement",
@@ -974,7 +975,11 @@ function addObjectWithUpdaterToElement(elements, symbol, object) {
974
975
 
975
976
  result.push(
976
977
  u.run().then(() => {
977
- return u.enableEventProcessing();
978
+ if (config.eventProcessing === true) {
979
+ u.enableEventProcessing();
980
+ }
981
+
982
+ return u;
978
983
  }),
979
984
  );
980
985
  });
@@ -159,7 +159,7 @@ function getMonsterVersion() {
159
159
  }
160
160
 
161
161
  /** don't touch, replaced by make with package.json version */
162
- monsterVersion = new Version("3.65.0");
162
+ monsterVersion = new Version("3.73.2");
163
163
 
164
164
  return monsterVersion;
165
165
  }
@@ -7,7 +7,7 @@ describe('Monster', function () {
7
7
  let monsterVersion
8
8
 
9
9
  /** don´t touch, replaced by make with package.json version */
10
- monsterVersion = new Version("3.65.0")
10
+ monsterVersion = new Version("3.73.2")
11
11
 
12
12
  let m = getMonsterVersion();
13
13
 
@@ -9,8 +9,8 @@
9
9
  </head>
10
10
  <body>
11
11
  <div id="headline" style="display: flex;align-items: center;justify-content: center;flex-direction: column;">
12
- <h1 style='margin-bottom: 0.1em;'>Monster 3.65.0</h1>
13
- <div id="lastupdate" style='font-size:0.7em'>last update Di 18. Jun 22:58:11 CEST 2024</div>
12
+ <h1 style='margin-bottom: 0.1em;'>Monster 3.73.2</h1>
13
+ <div id="lastupdate" style='font-size:0.7em'>last update Di 2. Jul 20:16:21 CEST 2024</div>
14
14
  </div>
15
15
  <div id="mocha-errors"
16
16
  style="color: red;font-weight: bold;display: flex;align-items: center;justify-content: center;flex-direction: column;margin:20px;"></div>