From 4ceb93fbf6df72ca62785eaa0c6f1115b369f98e Mon Sep 17 00:00:00 2001 From: Jeremiah Billmann Date: Thu, 4 Jul 2013 15:13:34 -0400 Subject: [PATCH] Progress: #3 --- client/garageserver.io.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/garageserver.io.js b/client/garageserver.io.js index ff8d882..e8da7aa 100644 --- a/client/garageserver.io.js +++ b/client/garageserver.io.js @@ -81,9 +81,9 @@ window.GarageServerIO = (function (window, socketio) { this.time = time; } - function Entity(id) { + function Entity() { this.updates = []; - this.id = id; + this.id; this.currentState = {}; } Entity.prototype = { @@ -133,9 +133,8 @@ window.GarageServerIO = (function (window, socketio) { }; function Player(id) { - this.updates = []; + Entity.call(this); this.id = id; - this.currentState = {}; } Player.prototype = Object.create(Entity.prototype);