mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
replaced NotificationCenter with Nc
This commit is contained in:
parent
da913c4709
commit
672a46efa8
35 changed files with 160 additions and 161 deletions
|
|
@ -7,7 +7,7 @@ define([
|
|||
"Game/Client/View/DomController"
|
||||
],
|
||||
|
||||
function (ProtocolHelper, GameController, User, NotificationCenter, Settings, DomController) {
|
||||
function (ProtocolHelper, GameController, User, Nc, Settings, DomController) {
|
||||
|
||||
function Networker (socketLink) {
|
||||
this.socketLink = socketLink;
|
||||
|
|
@ -26,8 +26,8 @@ function (ProtocolHelper, GameController, User, NotificationCenter, Settings, Do
|
|||
ProtocolHelper.applyCommand(message, self);
|
||||
});
|
||||
|
||||
NotificationCenter.on("sendGameCommand", this.sendGameCommand, this);
|
||||
NotificationCenter.on("game/level/loaded", this.onLevelLoaded, this);
|
||||
Nc.on("sendGameCommand", this.sendGameCommand, this);
|
||||
Nc.on("game/level/loaded", this.onLevelLoaded, this);
|
||||
}
|
||||
|
||||
// Socket callbacks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue