@appsurify-testmap/rrdom 2.0.0-alpha.32 → 2.0.0-alpha.40
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/rrdom.cjs +0 -39
- package/dist/rrdom.cjs.map +1 -1
- package/dist/rrdom.js +0 -39
- package/dist/rrdom.js.map +1 -1
- package/dist/rrdom.umd.cjs +0 -39
- package/dist/rrdom.umd.cjs.map +2 -2
- package/dist/rrdom.umd.min.cjs +12 -12
- package/dist/rrdom.umd.min.cjs.map +3 -3
- package/package.json +3 -3
package/dist/rrdom.js
CHANGED
|
@@ -87,30 +87,6 @@ const interactiveEvents = [
|
|
|
87
87
|
"touchend",
|
|
88
88
|
"touchcancel"
|
|
89
89
|
];
|
|
90
|
-
const inlineEventAttributes = [
|
|
91
|
-
"onclick",
|
|
92
|
-
"ondblclick",
|
|
93
|
-
"onmousedown",
|
|
94
|
-
"onmouseup",
|
|
95
|
-
"onmouseover",
|
|
96
|
-
"onmouseout",
|
|
97
|
-
"onmousemove",
|
|
98
|
-
"onfocus",
|
|
99
|
-
"onblur",
|
|
100
|
-
"onkeydown",
|
|
101
|
-
"onkeypress",
|
|
102
|
-
"onkeyup",
|
|
103
|
-
"onchange",
|
|
104
|
-
"oninput",
|
|
105
|
-
"onsubmit",
|
|
106
|
-
"onreset",
|
|
107
|
-
"onselect",
|
|
108
|
-
"oncontextmenu",
|
|
109
|
-
"ontouchstart",
|
|
110
|
-
"ontouchmove",
|
|
111
|
-
"ontouchend",
|
|
112
|
-
"ontouchcancel"
|
|
113
|
-
];
|
|
114
90
|
const interactiveElementsRegistry = /* @__PURE__ */ new WeakSet();
|
|
115
91
|
const originalAddEventListener = EventTarget.prototype.addEventListener;
|
|
116
92
|
EventTarget.prototype.addEventListener = function(type, listener, options) {
|
|
@@ -126,21 +102,6 @@ const originalRemoveEventListener = EventTarget.prototype.removeEventListener;
|
|
|
126
102
|
EventTarget.prototype.removeEventListener = function(type, listener, options) {
|
|
127
103
|
originalRemoveEventListener.call(this, type, listener, options);
|
|
128
104
|
};
|
|
129
|
-
function inspectInlineEventHandlers() {
|
|
130
|
-
const allElements = document.querySelectorAll("*");
|
|
131
|
-
allElements.forEach((el) => {
|
|
132
|
-
inlineEventAttributes.forEach((attr) => {
|
|
133
|
-
if (el.hasAttribute(attr)) {
|
|
134
|
-
interactiveElementsRegistry.add(el);
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
if (document.readyState === "complete" || document.readyState === "interactive") {
|
|
140
|
-
inspectInlineEventHandlers();
|
|
141
|
-
} else {
|
|
142
|
-
document.addEventListener("DOMContentLoaded", inspectInlineEventHandlers);
|
|
143
|
-
}
|
|
144
105
|
function getDefaultExportFromCjs(x2) {
|
|
145
106
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
146
107
|
}
|