Commit b68b53dc authored by Jacob Thornton's avatar Jacob Thornton
Browse files

rename escape method

parent 1cbda504
Showing with 3 additions and 3 deletions
+3 -3
...@@ -59,7 +59,7 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment