mol_jsx_lib 0.0.1404 → 0.0.1406

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/node.mjs CHANGED
@@ -2507,6 +2507,12 @@ var $;
2507
2507
  $mol_wire_atom.watching.add(this);
2508
2508
  }
2509
2509
  resync(args) {
2510
+ for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
2511
+ const pub = this.data[cursor];
2512
+ if (pub && pub instanceof $mol_wire_task) {
2513
+ pub.destructor();
2514
+ }
2515
+ }
2510
2516
  return this.put(this.task.call(this.host, ...args));
2511
2517
  }
2512
2518
  once() {
package/node.test.js CHANGED
@@ -2498,6 +2498,12 @@ var $;
2498
2498
  $mol_wire_atom.watching.add(this);
2499
2499
  }
2500
2500
  resync(args) {
2501
+ for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
2502
+ const pub = this.data[cursor];
2503
+ if (pub && pub instanceof $mol_wire_task) {
2504
+ pub.destructor();
2505
+ }
2506
+ }
2501
2507
  return this.put(this.task.call(this.host, ...args));
2502
2508
  }
2503
2509
  once() {