mol_plot_all 1.2.260 → 1.2.261

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mol_plot_all",
3
- "version": "1.2.260",
3
+ "version": "1.2.261",
4
4
  "main": "node.js",
5
5
  "module": "node.esm.js",
6
6
  "browser": "web.js",
package/web.test.js CHANGED
@@ -161,7 +161,7 @@ var $;
161
161
  return $mol_jsx("button", { title: props.hint }, target());
162
162
  };
163
163
  const dom = $mol_jsx(Button, { id: "foo", hint: "click me" }, () => 'hey!');
164
- $mol_assert_equal(dom.outerHTML, '<button title="click me" id="foo" class="Button">hey!</button>');
164
+ $mol_assert_equal(dom.outerHTML, '<button id="foo" title="click me" class="Button">hey!</button>');
165
165
  },
166
166
  'Nested guid generation'() {
167
167
  const Foo = () => {
@@ -1564,6 +1564,33 @@ var $;
1564
1564
  $mol_assert_equal(Fib.value(4), 8);
1565
1565
  $mol_assert_equal(Fib.sums, 6);
1566
1566
  },
1567
+ 'Unsubscribe from temp pubs on complete'($) {
1568
+ class Random extends $mol_object2 {
1569
+ static $ = $;
1570
+ static seed() {
1571
+ return Math.random();
1572
+ }
1573
+ static resets(next) {
1574
+ return Math.random();
1575
+ }
1576
+ static value() {
1577
+ this.resets();
1578
+ return this.seed();
1579
+ }
1580
+ }
1581
+ __decorate([
1582
+ $mol_wire_method
1583
+ ], Random, "seed", null);
1584
+ __decorate([
1585
+ $mol_wire_mem(0)
1586
+ ], Random, "resets", null);
1587
+ __decorate([
1588
+ $mol_wire_mem(0)
1589
+ ], Random, "value", null);
1590
+ const first = Random.value();
1591
+ Random.resets(null);
1592
+ $mol_assert_unique(Random.value(), first);
1593
+ },
1567
1594
  });
1568
1595
  })($ || ($ = {}));
1569
1596
  //mol/wire/mem/mem.test.ts