swapped client files

This commit is contained in:
logsol 2012-07-22 12:22:38 +02:00
parent d73d6b73e1
commit 005fb57c31
2 changed files with 24 additions and 24 deletions

View file

@ -1,11 +1,15 @@
requirejs.config({ define([
baseUrl: 'app' "Game/Client/Networker",
}); "Lib/Vendor/SocketIO"
],
var inspector = {};
function(Networker, SocketIO) {
requirejs(["Bootstrap/Client"], function(Client) {
function Client(location) {
var client = new Client(location.href); this.socket = SocketIO.connect(location);
inspector.client = client; this.networker = new Networker(socket);
}
return Client;
}); });

View file

@ -1,15 +1,11 @@
define([ requirejs.config({
"Game/Client/Networker", baseUrl: 'app'
"Lib/Vendor/SocketIO" });
],
var inspector = {};
function(Networker, SocketIO) {
requirejs(["Bootstrap/Client"], function(Client) {
function Client(location) {
this.socket = SocketIO.connect(location); var client = new Client(location.href);
this.networker = new Networker(socket); inspector.client = client;
}
return Client;
}); });