Permalink
Browse files

Shorten code for loop

  • Loading branch information...
1 parent ef9981e commit e1bf9f66ca2f94bbed560ce4793efb40410c0ede @ccampbell committed Jul 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mousetrap.js
View
@@ -191,8 +191,8 @@ window.Mousetrap = (function() {
/**
* loop through to map numbers on the numeric keypad
*/
- for (i = 96; i < 106; ++i) {
- _MAP[i] = i - 96;
+ for (i = 0; i <= 9; ++i) {
+ _MAP[i + 96] = i;
}
/**

0 comments on commit e1bf9f6

Please sign in to comment.