@zerocost/sdk 0.4.0 → 0.6.0
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/index.cjs +4 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -253,8 +253,10 @@ var WidgetModule = class {
|
|
|
253
253
|
closeBtn.addEventListener("click", (e) => {
|
|
254
254
|
e.preventDefault();
|
|
255
255
|
e.stopPropagation();
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
const mountInfo = this.mounted.get(targetElementId);
|
|
257
|
+
if (mountInfo?.interval) clearInterval(mountInfo.interval);
|
|
258
|
+
this.mounted.delete(targetElementId);
|
|
259
|
+
el.remove();
|
|
258
260
|
});
|
|
259
261
|
}
|
|
260
262
|
} catch (err) {
|
package/dist/index.js
CHANGED
|
@@ -224,8 +224,10 @@ var WidgetModule = class {
|
|
|
224
224
|
closeBtn.addEventListener("click", (e) => {
|
|
225
225
|
e.preventDefault();
|
|
226
226
|
e.stopPropagation();
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
const mountInfo = this.mounted.get(targetElementId);
|
|
228
|
+
if (mountInfo?.interval) clearInterval(mountInfo.interval);
|
|
229
|
+
this.mounted.delete(targetElementId);
|
|
230
|
+
el.remove();
|
|
229
231
|
});
|
|
230
232
|
}
|
|
231
233
|
} catch (err) {
|