2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Rename e to event (#34979)

This commit is contained in:
XhmikosR
2021-09-15 14:27:46 +03:00
committed by GitHub
parent 1d484b5737
commit c5d03d93fc
8 changed files with 69 additions and 69 deletions
+3 -3
View File
@@ -24,10 +24,10 @@ export const clearFixture = () => {
}
export const createEvent = (eventName, params = {}) => {
const e = document.createEvent('Event')
const event = document.createEvent('Event')
e.initEvent(eventName, Boolean(params.bubbles), Boolean(params.cancelable))
return e
event.initEvent(eventName, Boolean(params.bubbles), Boolean(params.cancelable))
return event
}
export const jQueryMock = {