cleaned up the mess ... :)

This commit is contained in:
logsol 2012-08-29 16:11:43 +02:00
parent ec1bceb1b6
commit dd154aa576
6 changed files with 34 additions and 23 deletions

View file

@ -5,11 +5,16 @@
function (GameController, NotificationCenter) {
function Channel (coordinatorLink) {
function Channel (pipeToLobby) {
var self = this;
this.coordinatorLink = coordinatorLink;
this.coordinatorLink.receive = function (message) { self.onMessage(message) };
this.pipeToLobby = pipeToLobby;
//this.pipeToLobby.receive = function (message) { self.onMessage(message) };
// !!! This should be done differently - use NotificationCenter.on('channel/dungeon/message') instead
this.users = {};