@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.umd.js
CHANGED
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
const selectorItem = selectorList[index];
|
|
281
281
|
if (eventTarget.matches(selectorItem)) {
|
|
282
282
|
/* 当前目标可以被selector所匹配到 */
|
|
283
|
-
listenerCallBack.call(eventTarget, event);
|
|
283
|
+
listenerCallBack.call(eventTarget, event, eventTarget);
|
|
284
284
|
checkOptionOnceToRemoveEventListener();
|
|
285
285
|
break;
|
|
286
286
|
}
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
300
|
catch (error) { }
|
|
301
|
-
listenerCallBack.call($closestMatches, event);
|
|
301
|
+
listenerCallBack.call($closestMatches, event, $closestMatches);
|
|
302
302
|
checkOptionOnceToRemoveEventListener();
|
|
303
303
|
break;
|
|
304
304
|
}
|