mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
swapped client files
This commit is contained in:
parent
d73d6b73e1
commit
005fb57c31
2 changed files with 24 additions and 24 deletions
|
|
@ -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;
|
||||||
|
|
||||||
});
|
});
|
||||||
24
client.js
24
client.js
|
|
@ -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;
|
|
||||||
|
|
||||||
});
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue