wj-elements 0.1.108 → 0.1.109

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.
@@ -619,16 +619,13 @@ const _WJElement = class _WJElement extends HTMLElement {
619
619
  setUpAccessors() {
620
620
  let attrs = this.getAttributeNames();
621
621
  attrs.forEach((name) => {
622
- var _a, _b;
623
622
  const sanitizedName = this.sanitizeName(name);
624
- if (this[sanitizedName] == void 0) {
625
- Object.defineProperty(this, sanitizedName, {
626
- set: Object.getOwnPropertyDescriptors(this.__proto__).hasOwnProperty(sanitizedName) ? (_a = Object.getOwnPropertyDescriptors(this.__proto__)) == null ? void 0 : _a[sanitizedName].set : (value) => this.setAttribute(name, value),
627
- get: Object.getOwnPropertyDescriptors(this.__proto__).hasOwnProperty(sanitizedName) ? (_b = Object.getOwnPropertyDescriptors(this.__proto__)) == null ? void 0 : _b[sanitizedName].get : (_) => {
628
- return this.getAttribute(name);
629
- }
630
- });
631
- }
623
+ const protoFunc = Object.getOwnPropertyDescriptors(this.__proto__)[sanitizedName];
624
+ const func = Object.getOwnPropertyDescriptors(this)[sanitizedName];
625
+ Object.defineProperty(this, sanitizedName, {
626
+ set: (protoFunc == null ? void 0 : protoFunc.set) ?? (func == null ? void 0 : func.set) ?? ((value) => this.setAttribute(name, value)),
627
+ get: (protoFunc == null ? void 0 : protoFunc.get) ?? (func == null ? void 0 : func.get) ?? (() => this.getAttribute(name))
628
+ });
632
629
  });
633
630
  }
634
631
  isProcessingFlow(processId) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wj-elements",
3
3
  "description": "WebJET Elements is a modern set of user interface tools harnessing the power of web components designed to simplify web application development.",
4
- "version": "0.1.108",
4
+ "version": "0.1.109",
5
5
  "homepage": "https://github.com/lencys/wj-elements",
6
6
  "author": "Lukáš Ondrejček <lukas.ondrejcek@gmail.com>",
7
7
  "license": "MIT",