wrec 0.25.2 → 0.25.4

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.
Files changed (2) hide show
  1. package/dist/wrec.es.js +2 -2
  2. package/package.json +1 -1
package/dist/wrec.es.js CHANGED
@@ -432,7 +432,7 @@ const w = class w extends Ct {
432
432
  );
433
433
  }
434
434
  displayIfSet(t, e = "block") {
435
- return `display: ${t ? e : "none"}`;
435
+ return `display: ${t == null ? "none" : e}`;
436
436
  }
437
437
  // This method is called automatically if
438
438
  // the component is nested in form element AND
@@ -743,7 +743,7 @@ J = function(t, e, s = void 0) {
743
743
  s ? rt(e, s, l) : a(this, i, gt).call(this, e, l);
744
744
  }, Jt = function(t, e) {
745
745
  const s = e?.trim() ?? "", o = h(this, m).properties[s];
746
- o || a(this, i, O).call(this, t, "ref", s), o.type !== Ct && a(this, i, g).call(this, t, "ref", `refers to property "${s}" whose type is not HTMLElement`), this[s] && a(this, i, g).call(this, t, "ref", `is a duplicate reference to the property "${s}"`), this[s] = t;
746
+ o || a(this, i, O).call(this, t, "ref", s), o.type !== Ct && a(this, i, g).call(this, t, "ref", `refers to property "${s}" whose type is not HTMLElement`), this[s] && a(this, i, g).call(this, t, "ref", `is a duplicate reference to the property "${s}"`), this[s] = t, t.removeAttribute("ref");
747
747
  }, g = function(t, e, s) {
748
748
  const o = t instanceof HTMLElement ? t.localName : "CSS rule";
749
749
  throw new v(
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "wrec",
3
3
  "description": "a small library that greatly simplifies building web components",
4
4
  "author": "R. Mark Volkmann",
5
- "version": "0.25.2",
5
+ "version": "0.25.4",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",