repo: janusweb
action: commit
revision: 
path_from: 
revision_from: cdf5fb37cd8d59802716ebe1bccb614224c63f0c:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit cdf5fb37cd8d59802716ebe1bccb614224c63f0c
Author: James Baicoianu 
Date:   Thu Oct 26 13:37:46 2017 -0700

    Include teleporter element by default

diff --git a/scripts/janusweb.js b/scripts/janusweb.js
index ae63fb2c1f86e56b6b611198dc9a37f885176c01..
index ..3ce0022e4a3b78656e4f8f5bd980edf9238e0c87 100644
--- a/scripts/janusweb.js
+++ b/scripts/janusweb.js
@@ -1,4 +1,7 @@
-elation.require(['janusweb.config', 'engine.things.generic','janusweb.remoteplayer', 'janusweb.room', 'janusweb.tracking', 'janusweb.multiplayermanager', 'janusweb.external.JanusFireboxParser', 'utils.proxy', 'janusweb.elements.raycaster'], function() {
+elation.require([
+  'janusweb.config', 'engine.things.generic','janusweb.remoteplayer', 'janusweb.room', 'janusweb.tracking', 'janusweb.multiplayermanager', 'janusweb.external.JanusFireboxParser', 'utils.proxy',
+  'janusweb.elements.raycaster', 'janusweb.elements.teleporter'], function() {
+
   elation.requireCSS('janusweb.janusweb');
   elation.component.add('engine.things.janusweb', function() {
     this.rooms = {};
@@ -107,7 +110,7 @@ elation.require(['janusweb.config', 'engine.things.generic','janusweb.remoteplay
       }
       this.initScripting();
       // TODO - this should be config-driven
-      this.registerAdditionalElements(['raycaster']);
+      this.registerAdditionalElements(['raycaster', 'teleporter']);
     }
     this.initScripting = function() {
       if (this.scriptingInitialized) return;

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