1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

rename escape method

This commit is contained in:
Jacob Thornton 2011-08-27 00:42:20 -07:00
parent 1cbda504a0
commit b68b53dca2

View file

@ -59,7 +59,7 @@
var that = this
this.isOpen = true
_private.onEscape.call(this)
_private.escape.call(this)
_private.backdrop.call(this)
this.$element = $(this.settings.content)
@ -80,7 +80,7 @@
this.isOpen = false
_private.onEscape.call(this)
_private.escape.call(this)
_private.backdrop.call(this)
this.$element.removeClass('open')
@ -125,7 +125,7 @@
}
}
, onEscape: function () {
, escape: function () {
var that = this
if ( this.isOpen && this.settings.closeOnEscape ) {
$window.bind('keyup.modal.escape', function ( e ) {