Skip to content
Browse files

Move var out of loop

  • Loading branch information...
1 parent e1bf9f6 commit 5ae2ff528436c4ec4c21c829ea1233f27e4cc3fa @ccampbell committed Jul 11, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 mousetrap.js
View
7 mousetrap.js
@@ -212,7 +212,7 @@ window.Mousetrap = (function() {
}
/**
- * takes the event and returns the keycode
+ * takes the event and returns the key character
*
* @param {Event} e
* @return {string}
@@ -276,9 +276,10 @@ window.Mousetrap = (function() {
function _resetSequences(do_not_reset) {
do_not_reset = do_not_reset || {};
- var active_sequences = false;
+ var active_sequences = false,
+ key;
- for (var key in _sequence_levels) {
+ for (key in _sequence_levels) {
if (!do_not_reset[key]) {
_sequence_levels[key] = 0;
continue;

0 comments on commit 5ae2ff5

Please sign in to comment.
Something went wrong with that request. Please try again.