@whitesev/domutils 1.4.5 → 1.4.6
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.amd.js +2 -2
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +2 -2
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +2 -2
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/DOMUtilsEvent.d.ts +6 -6
- package/package.json +1 -1
- package/src/DOMUtilsEvent.ts +45 -14
package/dist/index.esm.js
CHANGED
|
@@ -274,7 +274,7 @@ class DOMUtilsEvent {
|
|
|
274
274
|
const selectorItem = selectorList[index];
|
|
275
275
|
if (eventTarget.matches(selectorItem)) {
|
|
276
276
|
/* 当前目标可以被selector所匹配到 */
|
|
277
|
-
listenerCallBack.call(eventTarget, event);
|
|
277
|
+
listenerCallBack.call(eventTarget, event, eventTarget);
|
|
278
278
|
checkOptionOnceToRemoveEventListener();
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
@@ -292,7 +292,7 @@ class DOMUtilsEvent {
|
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
catch (error) { }
|
|
295
|
-
listenerCallBack.call($closestMatches, event);
|
|
295
|
+
listenerCallBack.call($closestMatches, event, $closestMatches);
|
|
296
296
|
checkOptionOnceToRemoveEventListener();
|
|
297
297
|
break;
|
|
298
298
|
}
|