mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
replaced ){ with ) {
This commit is contained in:
parent
76daceb2e7
commit
551fc943c9
20 changed files with 56 additions and 56 deletions
|
|
@ -23,7 +23,7 @@
|
|||
*/
|
||||
}
|
||||
|
||||
Channel.validateName = function (name){
|
||||
Channel.validateName = function (name) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -53,7 +53,7 @@
|
|||
|
||||
Channel.prototype.forward = function (target, message) {
|
||||
for(var command in message) {
|
||||
if(typeof target[command] == 'function'){
|
||||
if(typeof target[command] == 'function') {
|
||||
target[command].call(target, message[command]);
|
||||
} else {
|
||||
throw 'trying to call undefined function ' + target[command];
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
}
|
||||
|
||||
/*
|
||||
Channel.prototype.addUser = function (user){
|
||||
Channel.prototype.addUser = function (user) {
|
||||
var userIds = Object.keys(this.users);
|
||||
|
||||
this.users[user.id] = user;
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ function (Parent, PhysicsEngine, Settings, InputController, requestAnimFrame, No
|
|||
do {
|
||||
var userData = body.GetUserData();
|
||||
|
||||
if(userData && body.IsAwake()){
|
||||
if(userData && body.IsAwake()) {
|
||||
update[userData] = {
|
||||
p: body.GetPosition(),
|
||||
a: body.GetAngle(),
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ function (Parent, ProtocolHelper, NotificationCenter) {
|
|||
|
||||
User.prototype = Object.create(Parent.prototype);
|
||||
|
||||
User.prototype.init = function (socketLink){
|
||||
User.prototype.init = function (socketLink) {
|
||||
|
||||
var self = this;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue