0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-03 15:24:19 +01:00

fix reflow typo - should be $element not $backdrop

This commit is contained in:
Jacob Thornton 2011-09-20 14:50:14 -07:00
parent 01ab4caa5b
commit f2e15402c8

View File

@ -86,7 +86,7 @@
.show() .show()
if ($.support.transition && that.$element.hasClass('fade')) { if ($.support.transition && that.$element.hasClass('fade')) {
that.$backdrop[0].offsetWidth // force reflow that.$element[0].offsetWidth // force reflow
} }
that.$element that.$element
@ -144,13 +144,13 @@
} }
if ( doAnimate ) { 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 ? doAnimate ?
that.$backdrop.one(transitionEnd, callback) : this.$backdrop.one(transitionEnd, callback) :
callback() callback()
} else if ( !this.isShown && this.$backdrop ) { } else if ( !this.isShown && this.$backdrop ) {