1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-21 04:41:36 +02: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

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 = {