@quietsapa/qsl 0.1.2 → 0.1.3
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/CHANGELOG.md +23 -3
- package/dist/qsl.min.js +1 -1
- package/dist/qsl.min.js.map +1 -1
- package/dist/qsl.mjs +3 -11
- package/dist/qsl.mjs.map +1 -1
- package/dist/qsl.slim.min.js +1 -1
- package/dist/qsl.slim.min.js.map +1 -1
- package/package.json +1 -1
- package/src/core.js +1 -1
- package/src/plugins/events.js +10 -10
package/dist/qsl.mjs
CHANGED
|
@@ -2,7 +2,7 @@ const core = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Constants
|
|
4
4
|
*/
|
|
5
|
-
VERSION: "0.1.
|
|
5
|
+
VERSION: "0.1.3",
|
|
6
6
|
PREFIX: "qsl-",
|
|
7
7
|
FLOW_TYPE: {
|
|
8
8
|
DEFAULT: "default",
|
|
@@ -1625,21 +1625,13 @@ function events(QSL) {
|
|
|
1625
1625
|
};
|
|
1626
1626
|
document.addEventListener = (type, listener, opts) => {
|
|
1627
1627
|
if (type === "DOMContentLoaded" && this.LIFECYCLE.DOMREADY) {
|
|
1628
|
-
|
|
1629
|
-
if (trackedType !== type) {
|
|
1630
|
-
type = trackedType;
|
|
1631
|
-
queueMicrotask(() => document.dispatchEvent(new Event(trackedType)));
|
|
1632
|
-
}
|
|
1628
|
+
type = iterator.call(this, type, this.EVENTS.DOMREADY, true);
|
|
1633
1629
|
}
|
|
1634
1630
|
return documentListener.call(document, type, listener, opts);
|
|
1635
1631
|
};
|
|
1636
1632
|
window.addEventListener = (type, listener, opts) => {
|
|
1637
1633
|
if (type === "load" && this.LIFECYCLE.LOADED) {
|
|
1638
|
-
|
|
1639
|
-
if (trackedType !== type) {
|
|
1640
|
-
type = trackedType;
|
|
1641
|
-
queueMicrotask(() => window.dispatchEvent(new Event(trackedType)));
|
|
1642
|
-
}
|
|
1634
|
+
type = iterator.call(this, type, this.EVENTS.LOADED, true);
|
|
1643
1635
|
}
|
|
1644
1636
|
return windowListener.call(window, type, listener, opts);
|
|
1645
1637
|
};
|