aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-09-20 14:50:14 -0700
committerJacob Thornton <[email protected]>2011-09-20 14:50:14 -0700
commitf2e15402c811272552b78fe378aa6d4780706b13 (patch)
tree03d635c25c45204fa83701ead38113d6997da49a
parent01ab4caa5b967470edd11348e012386096d47506 (diff)
downloadbootstrap-f2e15402c811272552b78fe378aa6d4780706b13.tar.xz
bootstrap-f2e15402c811272552b78fe378aa6d4780706b13.zip
fix reflow typo - should be $element not $backdrop
-rw-r--r--js/bootstrap-modal.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js
index 2335c39d9..e0b77bf25 100644
--- a/js/bootstrap-modal.js
+++ b/js/bootstrap-modal.js
@@ -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
@@ -144,13 +144,13 @@
}
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 ) {