1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-10-04 01:01:56 +02:00

Expose transition durations on plugin constructors; closes #13656

This commit is contained in:
Heinrich Fenkart
2014-07-07 13:03:56 +02:00
parent a0d8d56593
commit 231744d628
6 changed files with 24 additions and 11 deletions

View File

@@ -19,6 +19,8 @@
Tab.VERSION = '3.2.0'
Tab.TRANSITION_DURATION = 150
Tab.prototype.show = function () {
var $this = this.element
var $ul = $this.closest('ul:not(.dropdown-menu)')
@@ -82,7 +84,7 @@
$active.length && transition ?
$active
.one('bsTransitionEnd', next)
.emulateTransitionEnd(150) :
.emulateTransitionEnd(Tab.TRANSITION_DURATION) :
next()
$active.removeClass('in')