replaced ){ with ) {

This commit is contained in:
logsol 2012-07-28 15:00:59 +02:00
parent 76daceb2e7
commit 551fc943c9
20 changed files with 56 additions and 56 deletions

View file

@ -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;

View file

@ -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(),

View file

@ -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;