1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-27 05:49:07 +02:00

Remove TRANSITION_END from utils (#32394)

This commit is contained in:
XhmikosR
2020-12-10 16:54:50 +02:00
committed by GitHub
parent 7e47b7ecc9
commit 1edec546cb
8 changed files with 16 additions and 24 deletions

View File

@@ -7,7 +7,6 @@
import {
defineJQueryPlugin,
TRANSITION_END,
emulateTransitionEnd,
getElementFromSelector,
getTransitionDurationFromElement
@@ -83,7 +82,7 @@ class Alert extends BaseComponent {
const transitionDuration = getTransitionDurationFromElement(element)
EventHandler.one(element, TRANSITION_END, () => this._destroyElement(element))
EventHandler.one(element, 'transitionend', () => this._destroyElement(element))
emulateTransitionEnd(element, transitionDuration)
}