Permalink
Browse files

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)
  • Loading branch information...
1 parent 68605bd commit d541eceb51bcc4dff8a42124c0b8d5cdee46d705 @aaronj1335 aaronj1335 committed Sep 23, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/bootstrap-modal.js
@@ -100,6 +100,8 @@
, hide: function (e) {
e && e.preventDefault()
+ if (! this.isShown) return
+
var that = this
this.isShown = false
@@ -235,4 +237,4 @@
})
})
-}( window.jQuery || window.ender );
+}( window.jQuery || window.ender );

0 comments on commit d541ece

Please sign in to comment.