mol_jsx_lib 0.0.73 → 0.0.76

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.js CHANGED
@@ -1408,7 +1408,9 @@ var $;
1408
1408
  var $;
1409
1409
  (function ($) {
1410
1410
  function $mol_wire_solo(host, field, descr) {
1411
- const orig = descr.value;
1411
+ if (!descr)
1412
+ descr = Reflect.getOwnPropertyDescriptor(host, field);
1413
+ const orig = descr?.value ?? host[field];
1412
1414
  const sup = Reflect.getPrototypeOf(host);
1413
1415
  if (typeof sup[field] === 'function') {
1414
1416
  Object.defineProperty(orig, 'name', { value: sup[field].name });
@@ -1446,7 +1448,9 @@ var $;
1446
1448
  var $;
1447
1449
  (function ($) {
1448
1450
  function $mol_wire_plex(host, field, descr) {
1449
- const orig = descr.value;
1451
+ if (!descr)
1452
+ descr = Reflect.getOwnPropertyDescriptor(host, field);
1453
+ const orig = descr?.value ?? host[field];
1450
1454
  const sup = Reflect.getPrototypeOf(host);
1451
1455
  if (typeof sup[field] === 'function') {
1452
1456
  Object.defineProperty(orig, 'name', { value: sup[field].name });