mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
refactored var c. fixes #18
This commit is contained in:
parent
715fb73d8b
commit
3bbb29b24f
2 changed files with 4 additions and 4 deletions
|
|
@ -81,8 +81,8 @@ define(["Protocol/Helper", "Chuck/ClientGame"], function(ProtocolHelper, ClientG
|
|||
break;
|
||||
|
||||
case 'gameCommand':
|
||||
for(var c in options) {
|
||||
this.clientGame.processGameCommand(c, options[c]);
|
||||
for(var gameCommand in options) {
|
||||
this.clientGame.processGameCommand(gameCommand, options[gameCommand]);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -55,8 +55,8 @@ define(["Protocol/Helper"], function(ProtocolHelper) {
|
|||
break;
|
||||
|
||||
case 'gameCommand':
|
||||
for(var c in options) {
|
||||
this.channel.processGameCommandFromUser(c, options[c], this);
|
||||
for(var gameCommand in options) {
|
||||
this.channel.processGameCommandFromUser(gameCommand, options[gameCommand], this);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue