From 2343049227189c81a0eda2f3b4358abfc1002968 Mon Sep 17 00:00:00 2001 From: Jeena Date: Sun, 29 Jun 2014 00:14:56 +0200 Subject: [PATCH] changed this to self because of #65 hope this helps --- app/Game/Channel/Channel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Game/Channel/Channel.js b/app/Game/Channel/Channel.js index 094cef0..39b4113 100755 --- a/app/Game/Channel/Channel.js +++ b/app/Game/Channel/Channel.js @@ -101,11 +101,11 @@ if(!this.gameController.level || !this.gameController.level.isLoaded) { var token = Nc.on(Nc.ns.core.game.events.level.loaded, function() { self.sendJoinSuccess(options); - this.users[options.id].sendControlCommand("beginRound", clientGameControllerOptions); + self.users[options.id].sendControlCommand("beginRound", clientGameControllerOptions); Nc.off(token); }); } else { - self.sendJoinSuccess(options); + this.sendJoinSuccess(options); this.users[options.id].sendControlCommand("beginRound", clientGameControllerOptions); } }