refactored var c. fixes #18

This commit is contained in:
logsol 2012-07-18 23:45:32 +02:00
parent 715fb73d8b
commit 3bbb29b24f
2 changed files with 4 additions and 4 deletions

View file

@ -81,8 +81,8 @@ define(["Protocol/Helper", "Chuck/ClientGame"], function(ProtocolHelper, ClientG
break; break;
case 'gameCommand': case 'gameCommand':
for(var c in options) { for(var gameCommand in options) {
this.clientGame.processGameCommand(c, options[c]); this.clientGame.processGameCommand(gameCommand, options[gameCommand]);
} }
break; break;

View file

@ -55,8 +55,8 @@ define(["Protocol/Helper"], function(ProtocolHelper) {
break; break;
case 'gameCommand': case 'gameCommand':
for(var c in options) { for(var gameCommand in options) {
this.channel.processGameCommandFromUser(c, options[c], this); this.channel.processGameCommandFromUser(gameCommand, options[gameCommand], this);
} }
break; break;