From 3bbb29b24fa7930c532d3d7f69d64ced4b58d586 Mon Sep 17 00:00:00 2001 From: logsol Date: Wed, 18 Jul 2012 23:45:32 +0200 Subject: [PATCH] refactored var c. fixes #18 --- lib/Client/Networker.js | 4 ++-- lib/Server/User.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Client/Networker.js b/lib/Client/Networker.js index c09c49b..5fc638f 100644 --- a/lib/Client/Networker.js +++ b/lib/Client/Networker.js @@ -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; diff --git a/lib/Server/User.js b/lib/Server/User.js index 3ea4f4e..737d9f3 100644 --- a/lib/Server/User.js +++ b/lib/Server/User.js @@ -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;