@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/dist/qsl.mjs CHANGED
@@ -2,7 +2,7 @@ const core = {
2
2
  /**
3
3
  * Constants
4
4
  */
5
- VERSION: "0.1.2",
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
- const trackedType = iterator.call(this, type, this.EVENTS.DOMREADY, true);
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
- const trackedType = iterator.call(this, type, this.EVENTS.LOADED, true);
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
  };