mol_plot_all 1.2.516 → 1.2.517

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.test.js CHANGED
@@ -1873,8 +1873,9 @@ var $;
1873
1873
  return fiber;
1874
1874
  }
1875
1875
  static watching = new Set();
1876
+ static watcher = null;
1876
1877
  static watch() {
1877
- new $mol_after_frame($mol_wire_atom.watch);
1878
+ $mol_wire_atom.watcher = new $mol_after_frame($mol_wire_atom.watch);
1878
1879
  for (const atom of $mol_wire_atom.watching) {
1879
1880
  if (atom.cursor === $mol_wire_cursor.final) {
1880
1881
  $mol_wire_atom.watching.delete(atom);
@@ -1886,6 +1887,9 @@ var $;
1886
1887
  }
1887
1888
  }
1888
1889
  watch() {
1890
+ if (!$mol_wire_atom.watcher) {
1891
+ $mol_wire_atom.watcher = new $mol_after_frame($mol_wire_atom.watch);
1892
+ }
1889
1893
  $mol_wire_atom.watching.add(this);
1890
1894
  }
1891
1895
  resync(args) {
@@ -1962,7 +1966,6 @@ var $;
1962
1966
  $mol_wire_method
1963
1967
  ], $mol_wire_atom.prototype, "once", null);
1964
1968
  $.$mol_wire_atom = $mol_wire_atom;
1965
- $mol_wire_atom.watch();
1966
1969
  })($ || ($ = {}));
1967
1970
  //mol/wire/atom/atom.ts
1968
1971
  ;