correct calling of notification center

This commit is contained in:
logsol 2012-07-22 02:26:33 +02:00
parent 7c01f1c9c6
commit 282a9a6155

View file

@ -1,4 +1,9 @@
define(["Game/Server/GameController"], function(GameController) { define([
"Game/Server/GameController",
"Game/Server/NotificationCenter"
],
function(GameController, NotificationCenter) {
function Channel(name) { function Channel(name) {
this.name = name; this.name = name;
@ -8,7 +13,7 @@ define(["Game/Server/GameController"], function(GameController) {
this.serverGame.loadLevel("default.json"); this.serverGame.loadLevel("default.json");
var self = this; var self = this;
this.notificationCenter.on("processGameCommandFromUser", function(topic, args) { NotificationCenter.on("processGameCommandFromUser", function(topic, args) {
self.processGameCommandFromUser.apply(self, args); self.processGameCommandFromUser.apply(self, args);
}); });
} }