repo: janusweb
action: commit
revision: 
path_from: 
revision_from: e4e6f93f5f5884b3cc088df6674165ce1b934774:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit e4e6f93f5f5884b3cc088df6674165ce1b934774
Author: James Baicoianu 
Date:   Mon Jan 8 06:51:42 2018 -0800

    Performance optimization when accessing chat

diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js
index 43c3e890361ac9ceaaeb871719821fce7f23bd3b..
index ..7787ccd91ea227b5bacd91a1bc1de9adfe375ee7 100644
--- a/scripts/janusplayer.js
+++ b/scripts/janusplayer.js
@@ -523,7 +523,7 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
         animid = 'walk_right';
       } else if (this.controlstate.move_backward) {
         animid = 'walk_back';
-      } else if (document.activeElement && this.janus.chat && document.activeElement === this.janus.chat.input.inputelement) {
+      } else if (document.activeElement && this.properties.janus.chat && document.activeElement === this.properties.janus.chat.input.inputelement) {
         animid = 'type';
       } else if (this.hasVoipData()) {
         animid = 'speak';

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