Skip to content

Commit

Permalink
Merge pull request #13176 from twbs/fat-13157
Browse files Browse the repository at this point in the history
fixes #13157 - Collapse plugin - issues with transition end event bubbli...
  • Loading branch information
mdo committed Apr 25, 2014
2 parents fe11ac7 + b9ae07d commit 022dc30
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,17 @@
.removeClass('collapsing')
.addClass('collapse in')[dimension]('')
this.transitioning = 0
this.$element.trigger('shown.bs.collapse')
this.$element
.off($.support.transition.end + '.bs.collapse')
.trigger('shown.bs.collapse')
}

if (!$.support.transition) return complete.call(this)

var scrollSize = $.camelCase(['scroll', dimension].join('-'))

this.$element
.one($.support.transition.end, $.proxy(complete, this))
.on($.support.transition.end + '.bs.collapse', $.proxy(complete, this))
.emulateTransitionEnd(350)[dimension](this.$element[0][scrollSize])
}

Expand Down

0 comments on commit 022dc30

Please sign in to comment.