From f2e15402c811272552b78fe378aa6d4780706b13 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Tue, 20 Sep 2011 14:50:14 -0700 Subject: [PATCH] fix reflow typo - should be $element not $backdrop --- js/bootstrap-modal.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js index 2335c39d94..e0b77bf251 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 ) {