mol_plot_all 1.2.1428 → 1.2.1430

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.js CHANGED
@@ -312,7 +312,7 @@ var $;
312
312
  emit(quant = $mol_wire_cursor.stale) {
313
313
  for (let i = this.sub_from; i < this.data.length; i += 2) {
314
314
  ;
315
- this.data[i].absorb(quant);
315
+ this.data[i].absorb(quant, this.data[i + 1]);
316
316
  }
317
317
  }
318
318
  peer_move(from_pos, to_pos) {
@@ -563,13 +563,24 @@ var $;
563
563
  pub?.complete();
564
564
  }
565
565
  }
566
- absorb(quant = $mol_wire_cursor.stale) {
566
+ absorb(quant = $mol_wire_cursor.stale, pos = -1) {
567
567
  if (this.cursor === $mol_wire_cursor.final)
568
568
  return;
569
569
  if (this.cursor >= quant)
570
570
  return;
571
571
  this.cursor = quant;
572
572
  this.emit($mol_wire_cursor.doubt);
573
+ if (pos >= 0 && pos < this.sub_from - 2) {
574
+ const pub = this.data[pos];
575
+ if (pub instanceof $mol_wire_task)
576
+ return;
577
+ for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
578
+ const pub = this.data[cursor];
579
+ if (pub instanceof $mol_wire_task) {
580
+ pub.destructor();
581
+ }
582
+ }
583
+ }
573
584
  }
574
585
  [$mol_dev_format_head]() {
575
586
  return $mol_dev_format_native(this);