2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +03: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
+4 -4
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)) {