mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
correct calling of notification center
This commit is contained in:
parent
7c01f1c9c6
commit
282a9a6155
1 changed files with 7 additions and 2 deletions
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue