mol_dump_lib 0.0.207 → 0.0.209

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
@@ -2233,7 +2233,7 @@ var $;
2233
2233
  }
2234
2234
  }
2235
2235
  dom_id() {
2236
- return this.toString();
2236
+ return this.toString().replace(/</g, '(').replace(/>/g, ')');
2237
2237
  }
2238
2238
  dom_node_external(next) {
2239
2239
  const node = next ?? $mol_dom_context.document.createElementNS(this.dom_name_space(), this.dom_name());
@@ -2510,6 +2510,9 @@ var $;
2510
2510
  __decorate([
2511
2511
  $mol_mem
2512
2512
  ], $mol_view.prototype, "view_rect", null);
2513
+ __decorate([
2514
+ $mol_memo.method
2515
+ ], $mol_view.prototype, "dom_id", null);
2513
2516
  __decorate([
2514
2517
  $mol_mem
2515
2518
  ], $mol_view.prototype, "dom_node", null);
package/web.test.js CHANGED
@@ -2208,8 +2208,8 @@ var $;
2208
2208
  $mol_mem_key
2209
2209
  ], $mol_view_test_block.prototype, "element", null);
2210
2210
  var x = $mol_view_test_block.Root(0);
2211
- $mol_assert_equal(x.dom_node().id, '$mol_view_test_block.Root<0>');
2212
- $mol_assert_equal(x.element(0).dom_node().id, '$mol_view_test_block.Root<0>.element<0>');
2211
+ $mol_assert_equal(x.dom_node().id, '$mol_view_test_block.Root(0)');
2212
+ $mol_assert_equal(x.element(0).dom_node().id, '$mol_view_test_block.Root(0).element(0)');
2213
2213
  },
2214
2214
  'caching ref to dom node'($) {
2215
2215
  var x = new class extends $mol_view {