vendor/assets/javascripts/tab.js in flashgrid-2.1.2 vs vendor/assets/javascripts/tab.js in flashgrid-2.2.0
- old
+ new
@@ -44,11 +44,11 @@
Tab.prototype.activate = function (element, container, callback) {
var $active = container.find('> .active')
var transition = callback
&& $.support.transition
- && $active.hasClass('fade')
+ && (($active.length && $active.hasClass('fade')) || !!container.find('> .fade').length)
function next() {
$active
.removeClass('active')
.find('> .dropdown-menu > .active')
@@ -68,10 +68,10 @@
}
callback && callback()
}
- transition ?
+ $active.length && transition ?
$active
.one('bsTransitionEnd', next)
.emulateTransitionEnd(150) :
next()
\ No newline at end of file