diff options
Diffstat (limited to 'js/dist/alert.js')
-rw-r--r-- | js/dist/alert.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/js/dist/alert.js b/js/dist/alert.js index 66fe5dc807..2299fb0a4f 100644 --- a/js/dist/alert.js +++ b/js/dist/alert.js @@ -79,7 +79,9 @@ }; var triggerTransitionEnd = function triggerTransitionEnd(element) { - element.dispatchEvent(new Event(TRANSITION_END)); + var evt = document.createEvent('HTMLEvents'); + evt.initEvent(TRANSITION_END, true, true); + element.dispatchEvent(evt); }; var emulateTransitionEnd = function emulateTransitionEnd(element, duration) { @@ -114,7 +116,7 @@ var Selector = { DISMISS: '[data-dismiss="alert"]' }; - var Event$1 = { + var Event = { CLOSE: "close" + EVENT_KEY, CLOSED: "closed" + EVENT_KEY, CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY @@ -184,7 +186,7 @@ }; _proto._triggerCloseEvent = function _triggerCloseEvent(element) { - return EventHandler.trigger(element, Event$1.CLOSE); + return EventHandler.trigger(element, Event.CLOSE); }; _proto._removeElement = function _removeElement(element) { @@ -210,7 +212,7 @@ element.parentNode.removeChild(element); } - EventHandler.trigger(element, Event$1.CLOSED); + EventHandler.trigger(element, Event.CLOSED); } // Static ; @@ -258,7 +260,7 @@ */ - EventHandler.on(document, Event$1.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert())); + EventHandler.on(document, Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert())); /** * ------------------------------------------------------------------------ * jQuery |