0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

Ensure that hidden event is sent when content is really hidden (collapsing class is removed)

This commit is contained in:
sgamel 2014-06-26 10:18:45 +02:00
parent 0e5ec1ab7a
commit 9445b84b0b

View File

@ -96,9 +96,9 @@
var complete = function () { var complete = function () {
this.transitioning = 0 this.transitioning = 0
this.$element this.$element
.trigger('hidden.bs.collapse')
.removeClass('collapsing') .removeClass('collapsing')
.addClass('collapse') .addClass('collapse')
.trigger('hidden.bs.collapse')
} }
if (!$.support.transition) return complete.call(this) if (!$.support.transition) return complete.call(this)