0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-10 22:24:19 +01:00

added bug fix for hide-before-show bug

this commit fixes a bug where .modal('hide') is called on a modal object before
.modal('show').  this can be viewed here:

    http://jsfiddle.net/aaronj1335/7hH89/8/

(notice the JS exception that is thrown)
This commit is contained in:
Aaron Stacy 2011-09-23 08:46:08 -05:00
parent 68605bdd51
commit d541eceb51

View File

@ -100,6 +100,8 @@
, hide: function (e) { , hide: function (e) {
e && e.preventDefault() e && e.preventDefault()
if (! this.isShown) return
var that = this var that = this
this.isShown = false this.isShown = false