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
|
|
@ -3,7 +3,7 @@ define([
|
|||
"Game/Server/Channel"
|
||||
],
|
||||
|
||||
function (NotificationCenter, Channel) {
|
||||
function (Nc, Channel) {
|
||||
|
||||
function PipeToLobby (process) {
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ function (NotificationCenter, Channel) {
|
|||
this.channel = null;
|
||||
this.process = process;
|
||||
|
||||
NotificationCenter.on('process/message', this.send, this);
|
||||
Nc.on('process/message', this.send, this);
|
||||
|
||||
process.on('message', function (message, handle) {
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ function (NotificationCenter, Channel) {
|
|||
};
|
||||
|
||||
PipeToLobby.prototype.onMessage = function (message) {
|
||||
NotificationCenter.trigger(message.recipient + '/controlCommand', message);
|
||||
Nc.trigger(message.recipient + '/controlCommand', message);
|
||||
}
|
||||
|
||||
return PipeToLobby;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue