mol_jsx_lib 0.0.1146 → 0.0.1148

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
@@ -740,7 +740,7 @@ var $;
740
740
  const pos = this.data[cursor + 1];
741
741
  sub.pub_off(pos);
742
742
  }
743
- this.sub_from = this.pub_from;
743
+ this.data.length = this.sub_from;
744
744
  this.cursor = this.pub_from;
745
745
  this.track_cut();
746
746
  this.cursor = $mol_wire_cursor.final;
@@ -754,7 +754,7 @@ var $;
754
754
  const pub = this.data[cursor];
755
755
  pub?.sub_off(this.data[cursor + 1]);
756
756
  end -= 2;
757
- if (this.sub_from < end)
757
+ if (this.sub_from <= end)
758
758
  this.peer_move(end, cursor);
759
759
  }
760
760
  this.data.length = end;