From 130429a611074d4fac21dc36ea2d499e15e46067 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Tue, 6 Dec 2011 16:00:59 +0100 Subject: [PATCH] fix getKeyboardHandler --- lib/ace/keyboard/keybinding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/keyboard/keybinding.js b/lib/ace/keyboard/keybinding.js index 02ef6992..6aab9452 100644 --- a/lib/ace/keyboard/keybinding.js +++ b/lib/ace/keyboard/keybinding.js @@ -71,7 +71,7 @@ var KeyBinding = function(editor) { }; this.getKeyboardHandler = function() { - return this.$handlers[this.$handlers - 1]; + return this.$handlers[this.$handlers.length - 1]; }; this.$callKeyboardHandlers = function (hashId, keyString, keyCode, e) {