From 005fb57c3139943f9a156a43d548be1f4320297c Mon Sep 17 00:00:00 2001 From: logsol Date: Sun, 22 Jul 2012 12:22:38 +0200 Subject: [PATCH] swapped client files --- app/Bootstrap/Client.js | 24 ++++++++++++++---------- client.js | 24 ++++++++++-------------- 2 files changed, 24 insertions(+), 24 deletions(-) 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