mol_plot_all 1.2.1429 → 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/node.js CHANGED
@@ -327,7 +327,7 @@ var $;
327
327
  emit(quant = $mol_wire_cursor.stale) {
328
328
  for (let i = this.sub_from; i < this.data.length; i += 2) {
329
329
  ;
330
- this.data[i].absorb(quant);
330
+ this.data[i].absorb(quant, this.data[i + 1]);
331
331
  }
332
332
  }
333
333
  peer_move(from_pos, to_pos) {
@@ -578,13 +578,24 @@ var $;
578
578
  pub?.complete();
579
579
  }
580
580
  }
581
- absorb(quant = $mol_wire_cursor.stale) {
581
+ absorb(quant = $mol_wire_cursor.stale, pos = -1) {
582
582
  if (this.cursor === $mol_wire_cursor.final)
583
583
  return;
584
584
  if (this.cursor >= quant)
585
585
  return;
586
586
  this.cursor = quant;
587
587
  this.emit($mol_wire_cursor.doubt);
588
+ if (pos >= 0 && pos < this.sub_from - 2) {
589
+ const pub = this.data[pos];
590
+ if (pub instanceof $mol_wire_task)
591
+ return;
592
+ for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
593
+ const pub = this.data[cursor];
594
+ if (pub instanceof $mol_wire_task) {
595
+ pub.destructor();
596
+ }
597
+ }
598
+ }
588
599
  }
589
600
  [$mol_dev_format_head]() {
590
601
  return $mol_dev_format_native(this);