mol_wire_dom 0.0.1524 → 0.0.1525

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
@@ -1942,6 +1942,12 @@ var $;
1942
1942
  $mol_wire_atom.watching.add(this);
1943
1943
  }
1944
1944
  resync(args) {
1945
+ for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
1946
+ const pub = this.data[cursor];
1947
+ if (pub && pub instanceof $mol_wire_task) {
1948
+ pub.destructor();
1949
+ }
1950
+ }
1945
1951
  return this.put(this.task.call(this.host, ...args));
1946
1952
  }
1947
1953
  once() {
package/node.test.js CHANGED
@@ -1933,6 +1933,12 @@ var $;
1933
1933
  $mol_wire_atom.watching.add(this);
1934
1934
  }
1935
1935
  resync(args) {
1936
+ for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
1937
+ const pub = this.data[cursor];
1938
+ if (pub && pub instanceof $mol_wire_task) {
1939
+ pub.destructor();
1940
+ }
1941
+ }
1936
1942
  return this.put(this.task.call(this.host, ...args));
1937
1943
  }
1938
1944
  once() {