Skip to content

Commit

Permalink
char is a reserved word. duh
Browse files Browse the repository at this point in the history
  • Loading branch information
anutron committed Apr 25, 2009
1 parent 136afd8 commit 94a7658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Forms/SimpleEditor.js
Expand Up @@ -32,8 +32,8 @@ var SimpleEditor = new Class({
shortCutToKey: function(shortcut, shift){
var returnKey = false;
this.commands.each(function(value, key){
var char = (value.shortcut ? value.shortcut.toLowerCase() : value.shortcut);
if (value.shortcut == shortcut || (shift && char == shortcut)) returnKey = key;
var ch = (value.shortcut ? value.shortcut.toLowerCase() : value.shortcut);
if (value.shortcut == shortcut || (shift && ch == shortcut)) returnKey = key;
});
return returnKey;
},
Expand Down

0 comments on commit 94a7658

Please sign in to comment.