From: Jacob Thornton Date: Tue, 20 Sep 2011 21:50:14 +0000 (-0700) Subject: fix reflow typo - should be $element not $backdrop X-Git-Tag: v1.4.0~68 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2e15402c811272552b78fe378aa6d4780706b13;p=thirdparty%2Fbootstrap.git fix reflow typo - should be $element not $backdrop --- 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 ) {