mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
altered define paths
This commit is contained in:
parent
38bc5adabd
commit
e70366398f
1 changed files with 7 additions and 3 deletions
10
app/Lobby/Coordinator.js
Normal file → Executable file
10
app/Lobby/Coordinator.js
Normal file → Executable file
|
|
@ -1,4 +1,9 @@
|
|||
define(["Server/User", "Server/Channel", "Server/Factory"], function(User, Channel, Factory) {
|
||||
define([
|
||||
"Game/Server/User",
|
||||
"Game/Server/Channel"
|
||||
],
|
||||
|
||||
function(User, Channel) {
|
||||
|
||||
function Coordinator() {
|
||||
this.channels = {};
|
||||
|
|
@ -30,8 +35,7 @@ define(["Server/User", "Server/Channel", "Server/Factory"], function(User, Chann
|
|||
|
||||
var channel = this.channels[channelName];
|
||||
if(!channel) {
|
||||
var factory = new Factory();
|
||||
channel = factory.new(Channel, channelName);
|
||||
channel = new Channel(channelName);
|
||||
this.channels[channelName] = channel;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue