]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix reflow typo - should be $element not $backdrop
authorJacob Thornton <jacobthornton@gmail.com>
Tue, 20 Sep 2011 21:50:14 +0000 (14:50 -0700)
committerJacob Thornton <jacobthornton@gmail.com>
Tue, 20 Sep 2011 21:50:14 +0000 (14:50 -0700)
js/bootstrap-modal.js

index 2335c39d94bb41c83a99f702dcb3bce6aac1e719..e0b77bf251f7b951dd25fbf76cc1e5b3bd4bb7c4 100644 (file)
@@ -86,7 +86,7 @@
             .show()
 
           if ($.support.transition && that.$element.hasClass('fade')) {
-            that.$backdrop[0].offsetWidth // force reflow
+            that.$element[0].offsetWidth // force reflow
           }
 
           that.$element
       }
 
       if ( doAnimate ) {
-        that.$backdrop[0].offsetWidth // force reflow
+        this.$backdrop[0].offsetWidth // force reflow
       }
 
-      that.$backdrop && that.$backdrop.addClass('in')
+      this.$backdrop.addClass('in')
 
       doAnimate ?
-        that.$backdrop.one(transitionEnd, callback) :
+        this.$backdrop.one(transitionEnd, callback) :
         callback()
 
     } else if ( !this.isShown && this.$backdrop ) {