From 98eeffc7cefd4297d94718429b29c1b342895fea Mon Sep 17 00:00:00 2001 From: Jeremy Fleischman Date: Fri, 16 Dec 2011 04:08:28 -0800 Subject: [PATCH] Keyboard.addEvent calls parent() with a parsed event type. When removeEvents is called, it will call removeEvent with the already parsed event type. We cannot call Keyboard.parse() inside of removeEvent because then we would be parsing an already parsed event type. I don't really like my fix, as it means that an argument to Keyboard.addEvent() is not a valid argument to Keyboard.removeEvent. I'm not sure what the best fix to this problem is, however. --- Source/Interface/Keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Interface/Keyboard.js b/Source/Interface/Keyboard.js index 7fa17e30..61a1a888 100644 --- a/Source/Interface/Keyboard.js +++ b/Source/Interface/Keyboard.js @@ -57,7 +57,7 @@ provides: [Keyboard] }, removeEvent: function(type, fn){ - return this.parent(Keyboard.parse(type, this.options.defaultEventType, this.options.nonParsedEvents), fn); + return this.parent(type, fn); }, toggleActive: function(){