mol_jsx_lib 0.0.1315 → 0.0.1316

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/web.mjs CHANGED
@@ -508,7 +508,7 @@ var $;
508
508
  emit(quant = $mol_wire_cursor.stale) {
509
509
  for (let i = this.sub_from; i < this.data.length; i += 2) {
510
510
  ;
511
- this.data[i].absorb(quant);
511
+ this.data[i].absorb(quant, this.data[i + 1]);
512
512
  }
513
513
  }
514
514
  peer_move(from_pos, to_pos) {
@@ -773,13 +773,24 @@ var $;
773
773
  pub?.complete();
774
774
  }
775
775
  }
776
- absorb(quant = $mol_wire_cursor.stale) {
776
+ absorb(quant = $mol_wire_cursor.stale, pos = -1) {
777
777
  if (this.cursor === $mol_wire_cursor.final)
778
778
  return;
779
779
  if (this.cursor >= quant)
780
780
  return;
781
781
  this.cursor = quant;
782
782
  this.emit($mol_wire_cursor.doubt);
783
+ if (pos >= 0 && pos < this.sub_from - 2) {
784
+ const pub = this.data[pos];
785
+ if (pub instanceof $mol_wire_task)
786
+ return;
787
+ for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
788
+ const pub = this.data[cursor];
789
+ if (pub instanceof $mol_wire_task) {
790
+ pub.destructor();
791
+ }
792
+ }
793
+ }
783
794
  }
784
795
  [$mol_dev_format_head]() {
785
796
  return $mol_dev_format_native(this);
package/web.test.js CHANGED
@@ -1773,8 +1773,6 @@ var $;
1773
1773
  $mol_wire_sync(this).wait();
1774
1774
  return this.value();
1775
1775
  }
1776
- static test() {
1777
- }
1778
1776
  }
1779
1777
  __decorate([
1780
1778
  $mol_wire_solo
@@ -1785,9 +1783,6 @@ var $;
1785
1783
  __decorate([
1786
1784
  $mol_wire_solo
1787
1785
  ], App, "result", null);
1788
- __decorate([
1789
- $mol_wire_method
1790
- ], App, "test", null);
1791
1786
  $mol_assert_equal(App.result(), 1);
1792
1787
  App.resets(null);
1793
1788
  $mol_wire_fiber.sync();