mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-26 06:54:42 +00:00
fix reflow typo - should be $element not $backdrop
This commit is contained in:
parent
01ab4caa5b
commit
f2e15402c8
1 changed files with 4 additions and 4 deletions
8
js/bootstrap-modal.js
vendored
8
js/bootstrap-modal.js
vendored
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue