cradova 3.13.1 → 3.13.2

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/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -746,7 +746,8 @@ class Signal {
746
746
  }
747
747
  const listener = () => {
748
748
  if (!document.body.contains(listener.element)) {
749
- this.subscribers[eventName].splice(listener.idx, 1);
749
+ listener.element?.remove();
750
+ this.subscribers[eventName] = this.subscribers[eventName].filter((f) => listener.idx !== f.idx);
750
751
  return;
751
752
  }
752
753
  let newEl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cradova",
3
- "version": "3.13.1",
3
+ "version": "3.13.2",
4
4
  "description": "Build Powerful ⚡ Web Apps with Ease",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",