Skip to content

Commit

Permalink
Remove improper use of for/in, replace with for loop. Closes #111, #116
Browse files Browse the repository at this point in the history
  • Loading branch information
madrobby committed Mar 6, 2014
1 parent 2172fc2 commit 5004b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keymaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 5004b91

Please sign in to comment.