wj-elements 0.0.12 → 0.0.13
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/dist/wj-routerx.js +4 -1
- package/package.json +1 -1
package/dist/wj-routerx.js
CHANGED
|
@@ -1492,7 +1492,7 @@ class Routerx extends WJElement {
|
|
|
1492
1492
|
this.router.use(events);
|
|
1493
1493
|
this.router.use(this.resetScrollPosition);
|
|
1494
1494
|
this.router.listen();
|
|
1495
|
-
interceptLinks(this.router);
|
|
1495
|
+
this.unbindIntercept = interceptLinks(this.router);
|
|
1496
1496
|
}
|
|
1497
1497
|
parseElement(element) {
|
|
1498
1498
|
const obj = {};
|
|
@@ -1520,6 +1520,9 @@ class Routerx extends WJElement {
|
|
|
1520
1520
|
}
|
|
1521
1521
|
return obj;
|
|
1522
1522
|
}
|
|
1523
|
+
beforeDisconnect() {
|
|
1524
|
+
this.unbindIntercept();
|
|
1525
|
+
}
|
|
1523
1526
|
}
|
|
1524
1527
|
customElements.get("wj-router") || window.customElements.define("wj-router", Routerx);
|
|
1525
1528
|
export {
|