wj-elements 0.1.95 → 0.1.97

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.
@@ -101,6 +101,12 @@ class Dialog extends WJElement {
101
101
  event.addListener(document, params.trigger, null, this.onOpen);
102
102
  }
103
103
  }
104
+ beforeDisconnect() {
105
+ var _a, _b;
106
+ if ((_a = this.params) == null ? void 0 : _a.trigger) {
107
+ event.removeListener(document, (_b = this.params) == null ? void 0 : _b.trigger, null, this.onOpen);
108
+ }
109
+ }
104
110
  beforeOpen() {
105
111
  }
106
112
  afterOpen() {
@@ -254,7 +254,7 @@ class MenuItem extends WJElement {
254
254
  event.addListener(this, "focusout", null, this.shouldHideSubmenu);
255
255
  event.addListener(this, "click", null, this.clickHandler);
256
256
  }
257
- afterDisconnect() {
257
+ beforeDisconnect() {
258
258
  event.removeListener(this, "mousemove", null, this.dispatchMove);
259
259
  event.removeListener(this, "wje-popup:reposition", null, this.dispatchReposition);
260
260
  event.removeListener(this, "mouseenter", null, this.mouseenterHandler);
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.95",
4
+ "version": "0.1.97",
5
5
  "homepage": "https://github.com/lencys/wj-elements",
6
6
  "author": "Lukáš Ondrejček <lukas.ondrejcek@gmail.com>",
7
7
  "license": "MIT",