mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-10 22:24:19 +01:00
fix reflow typo - should be $element not $backdrop
This commit is contained in:
parent
01ab4caa5b
commit
f2e15402c8
8
js/bootstrap-modal.js
vendored
8
js/bootstrap-modal.js
vendored
@ -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 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user