@webtides/element-js 1.2.4 → 1.2.5

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": "@webtides/element-js",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "module": "index.js",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -337,8 +337,9 @@ class BaseElement extends HTMLElement {
337
337
  this._state[property].subscribe(this);
338
338
  }
339
339
 
340
- if (Object.getOwnPropertyDescriptor(this, property)) {
341
- // instance already has a defined property
340
+ const descriptor = Object.getOwnPropertyDescriptor(this, property);
341
+ if (descriptor && descriptor.set && descriptor.get) {
342
+ // instance already has a defined, reactive ejs property
342
343
  return;
343
344
  }
344
345
  Object.defineProperty(this, property, {