mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
rename escape method
This commit is contained in:
parent
1cbda504a0
commit
b68b53dca2
6
examples/assets/js/bootstrap-modals.js
vendored
6
examples/assets/js/bootstrap-modals.js
vendored
@ -59,7 +59,7 @@
|
|||||||
var that = this
|
var that = this
|
||||||
this.isOpen = true
|
this.isOpen = true
|
||||||
|
|
||||||
_private.onEscape.call(this)
|
_private.escape.call(this)
|
||||||
_private.backdrop.call(this)
|
_private.backdrop.call(this)
|
||||||
|
|
||||||
this.$element = $(this.settings.content)
|
this.$element = $(this.settings.content)
|
||||||
@ -80,7 +80,7 @@
|
|||||||
|
|
||||||
this.isOpen = false
|
this.isOpen = false
|
||||||
|
|
||||||
_private.onEscape.call(this)
|
_private.escape.call(this)
|
||||||
_private.backdrop.call(this)
|
_private.backdrop.call(this)
|
||||||
|
|
||||||
this.$element.removeClass('open')
|
this.$element.removeClass('open')
|
||||||
@ -125,7 +125,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
, onEscape: function () {
|
, escape: function () {
|
||||||
var that = this
|
var that = this
|
||||||
if ( this.isOpen && this.settings.closeOnEscape ) {
|
if ( this.isOpen && this.settings.closeOnEscape ) {
|
||||||
$window.bind('keyup.modal.escape', function ( e ) {
|
$window.bind('keyup.modal.escape', function ( e ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user