mol_jsx_lib 0.0.707 → 0.0.708

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.mjs CHANGED
@@ -2303,7 +2303,9 @@ var $;
2303
2303
  var $;
2304
2304
  (function ($) {
2305
2305
  function $mol_wire_solid() {
2306
- const current = $mol_wire_auto();
2306
+ let current = $mol_wire_auto();
2307
+ if (current.temp)
2308
+ current = current.host;
2307
2309
  if (current.reap !== nothing) {
2308
2310
  current?.sub_on(sub, sub.data.length);
2309
2311
  }
package/node.test.js CHANGED
@@ -2295,7 +2295,9 @@ var $;
2295
2295
  var $;
2296
2296
  (function ($) {
2297
2297
  function $mol_wire_solid() {
2298
- const current = $mol_wire_auto();
2298
+ let current = $mol_wire_auto();
2299
+ if (current.temp)
2300
+ current = current.host;
2299
2301
  if (current.reap !== nothing) {
2300
2302
  current?.sub_on(sub, sub.data.length);
2301
2303
  }
@@ -2924,7 +2926,7 @@ var $;
2924
2926
  for (let i = 1; i < args.length; ++i) {
2925
2927
  if ($mol_compare_deep(args[0], args[i]))
2926
2928
  continue;
2927
- if (args[0] instanceof Element && args[i] instanceof Element && args[0].outerHTML === args[i].outerHTML)
2929
+ if (args[0] instanceof $mol_dom_context.Element && args[i] instanceof $mol_dom_context.Element && args[0].outerHTML === args[i].outerHTML)
2928
2930
  continue;
2929
2931
  return $mol_fail(new Error(`args[0] ≠ args[${i}]\n${print(args[0])}\n---\n${print(args[i])}`));
2930
2932
  }