repo: janusweb
action: commit
revision: 
path_from: 
revision_from: e25a04aa47e3e6176a76902e83d731d83588e7f9:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit e25a04aa47e3e6176a76902e83d731d83588e7f9
Author: James Baicoianu 
Date:   Fri Jun 23 16:21:20 2017 -0700

    Fix janus object reference

diff --git a/scripts/janusghost.js b/scripts/janusghost.js
index 5e7f931b52efedc7e382816e41d63106b3d4adb5..
index ..c3eac26ed2e9e6e93dae019fc3cfac88cdf4b70d 100644
--- a/scripts/janusghost.js
+++ b/scripts/janusghost.js
@@ -320,7 +320,7 @@ elation.require(['janusweb.janusbase', 'engine.things.leapmotion'], function() {
           this.properties.position.fromArray(pos);
         } else {
           if (this.interpolateLastPos) {
-            var rate = this.janusweb.network.getUpdateRate(this.room);
+            var rate = this.janus.network.getUpdateRate(this.room);
             var lastpos = this.interpolateLastPos;
             this.properties.position.fromArray(this.interpolateLastPos);
             this.properties.velocity.set(pos[0] - lastpos[0], pos[1] - lastpos[1], pos[2] - lastpos[2]).multiplyScalar(1000 / rate);

-----END OF PAGE-----