diff --git a/app/Bootstrap/Client.js b/app/Bootstrap/Client.js index 86a1bfe..79a50c1 100755 --- a/app/Bootstrap/Client.js +++ b/app/Bootstrap/Client.js @@ -1,11 +1,15 @@ -requirejs.config({ - baseUrl: 'app' -}); - -var inspector = {}; - -requirejs(["Bootstrap/Client"], function(Client) { - - var client = new Client(location.href); - inspector.client = client; +define([ + "Game/Client/Networker", + "Lib/Vendor/SocketIO" +], + +function(Networker, SocketIO) { + + function Client(location) { + this.socket = SocketIO.connect(location); + this.networker = new Networker(socket); + } + + return Client; + }); \ No newline at end of file diff --git a/client.js b/client.js index 79a50c1..86a1bfe 100755 --- a/client.js +++ b/client.js @@ -1,15 +1,11 @@ -define([ - "Game/Client/Networker", - "Lib/Vendor/SocketIO" -], - -function(Networker, SocketIO) { - - function Client(location) { - this.socket = SocketIO.connect(location); - this.networker = new Networker(socket); - } - - return Client; - +requirejs.config({ + baseUrl: 'app' +}); + +var inspector = {}; + +requirejs(["Bootstrap/Client"], function(Client) { + + var client = new Client(location.href); + inspector.client = client; }); \ No newline at end of file