Skip to content

Commit

Permalink
don't hide if already hidden ya n00b
Browse files Browse the repository at this point in the history
  • Loading branch information
fat committed Feb 6, 2013
1 parent a866a51 commit a4b31d3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/assets/js/bootstrap-collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

, hide: function () {
var dimension
if (this.transitioning) return
if (this.transitioning || !this.$element.hasClass('in')) return
dimension = this.dimension()
this.reset(this.$element[dimension]())
this.transition('removeClass', $.Event('hide'), 'hidden')
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@

, hide: function () {
var dimension
if (this.transitioning) return
if (this.transitioning || !this.$element.hasClass('in')) return
dimension = this.dimension()
this.reset(this.$element[dimension]())
this.transition('removeClass', $.Event('hide'), 'hidden')
Expand Down
Loading

0 comments on commit a4b31d3

Please sign in to comment.