1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-27 13:59:06 +02:00

Use a single class name for opened/expanded/shown state of widgets

This commit is contained in:
Johann-S
2016-10-24 10:57:32 +02:00
parent f11f630acd
commit 9d129a43d6
19 changed files with 113 additions and 113 deletions

View File

@@ -36,9 +36,9 @@ const Alert = (($) => {
}
const ClassName = {
ALERT : 'alert',
FADE : 'fade',
IN : 'in'
ALERT : 'alert',
FADE : 'fade',
ACTIVE : 'active'
}
@@ -108,7 +108,7 @@ const Alert = (($) => {
}
_removeElement(element) {
$(element).removeClass(ClassName.IN)
$(element).removeClass(ClassName.ACTIVE)
if (!Util.supportsTransitionEnd() ||
!$(element).hasClass(ClassName.FADE)) {