diff options
Diffstat (limited to 'js/src/dom/event-handler.js')
-rw-r--r-- | js/src/dom/event-handler.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/dom/event-handler.js b/js/src/dom/event-handler.js index b1484e5171..7fdeaa4f8e 100644 --- a/js/src/dom/event-handler.js +++ b/js/src/dom/event-handler.js @@ -6,7 +6,7 @@ */ import { getjQuery } from '../util/index' -import { createCustomEvent, defaultPreventedPreservedOnDispatch } from './polyfill' +import { defaultPreventedPreservedOnDispatch } from './polyfill' /** * ------------------------------------------------------------------------ @@ -307,7 +307,7 @@ const EventHandler = { evt = document.createEvent('HTMLEvents') evt.initEvent(typeEvent, bubbles, true) } else { - evt = createCustomEvent(event, { + evt = new CustomEvent(event, { bubbles, cancelable: true }) |