Skip to content

Commit

Permalink
Loop backwards
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan committed Mar 19, 2016
1 parent a4e292c commit ebff4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phosphorus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3189,7 +3189,7 @@ P.compile = (function() {
(object.listeners.whenIReceive[key] || (object.listeners.whenIReceive[key] = [])).push(f);
} else if (script[0][0] === 'whenKeyPressed') {
if (script[0][1] === 'any') {
for (var i = 0; i < 128; i++) {
for (var i = 128; i--;) {
object.listeners.whenKeyPressed[i].push(f);
}
} else {
Expand Down

0 comments on commit ebff4b1

Please sign in to comment.