From 282a9a615555fe89286be9716cd306f9d54f402b Mon Sep 17 00:00:00 2001 From: logsol Date: Sun, 22 Jul 2012 02:26:33 +0200 Subject: [PATCH] correct calling of notification center --- app/Game/Server/Channel.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/Game/Server/Channel.js b/app/Game/Server/Channel.js index b1aafd2..9a3715f 100755 --- a/app/Game/Server/Channel.js +++ b/app/Game/Server/Channel.js @@ -1,4 +1,9 @@ -define(["Game/Server/GameController"], function(GameController) { +define([ + "Game/Server/GameController", + "Game/Server/NotificationCenter" +], + +function(GameController, NotificationCenter) { function Channel(name) { this.name = name; @@ -8,7 +13,7 @@ define(["Game/Server/GameController"], function(GameController) { this.serverGame.loadLevel("default.json"); var self = this; - this.notificationCenter.on("processGameCommandFromUser", function(topic, args) { + NotificationCenter.on("processGameCommandFromUser", function(topic, args) { self.processGameCommandFromUser.apply(self, args); }); }