Permalink
Browse files

Remove improper use of for/in, replace with for loop. Closes #111, #116

  • Loading branch information...
1 parent 2172fc2 commit 5004b91306fe35ad96884f6eca6be199b907893c @madrobby committed Mar 6, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 keymaster.js
View
@@ -187,7 +187,7 @@
if (!_handlers[key]) {
return;
}
- for (i in _handlers[key]) {
+ for (i = 0; i < _handlers[key].length; i++) {
obj = _handlers[key][i];
// only clear handlers if correct scope and mods match
if (obj.scope === scope && compareArray(obj.mods, mods)) {

0 comments on commit 5004b91

Please sign in to comment.