@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.amd.js
CHANGED
|
@@ -276,7 +276,7 @@ define((function () { 'use strict';
|
|
|
276
276
|
const selectorItem = selectorList[index];
|
|
277
277
|
if (eventTarget.matches(selectorItem)) {
|
|
278
278
|
/* 当前目标可以被selector所匹配到 */
|
|
279
|
-
listenerCallBack.call(eventTarget, event);
|
|
279
|
+
listenerCallBack.call(eventTarget, event, eventTarget);
|
|
280
280
|
checkOptionOnceToRemoveEventListener();
|
|
281
281
|
break;
|
|
282
282
|
}
|
|
@@ -294,7 +294,7 @@ define((function () { 'use strict';
|
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
296
|
catch (error) { }
|
|
297
|
-
listenerCallBack.call($closestMatches, event);
|
|
297
|
+
listenerCallBack.call($closestMatches, event, $closestMatches);
|
|
298
298
|
checkOptionOnceToRemoveEventListener();
|
|
299
299
|
break;
|
|
300
300
|
}
|