repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 25b0b50e2f7fbcf4762cb856b626e7108a8db70b:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 25b0b50e2f7fbcf4762cb856b626e7108a8db70b
Author: James Baicoianu 
Date:   Sun Jan 30 13:47:10 2022 -0800

    Fixed duplicate object props and missing semicolons

diff --git a/scripts/portal.js b/scripts/portal.js
index 7aeb4dc15bdf464a89d687b4010fa4cab6bdfc02..
index ..1498974460090d31b061c0d46855fd66788f124d 100644
--- a/scripts/portal.js
+++ b/scripts/portal.js
@@ -2,13 +2,12 @@ elation.require(['janusweb.janusbase'], function() {
   elation.component.add('engine.things.janusportal', function() {
     this.postinit = function() {
       this.defineProperties({
-        'url': { type: 'string' },
+        'url': { type: 'string', set: this.updateTitle },
         'title': { type: 'string' },
         'janus': { type: 'object' },
         'room': { type: 'object' },
         //'color': { type: 'color', default: new THREE.Color(0xffffff), set: this.updateMaterial },
         'size': { type: 'vector3', default: new THREE.Vector3(1.4,2.2,1), set: this.updateGeometry },
-        'url': { type: 'string', set: this.updateTitle },
         'open': { type: 'boolean', default: false },
         'collision_id': { type: 'string', default: 'cube', set: this.updateCollider },
         'collision_scale': { type: 'vector3', set: this.updateCollider },
@@ -333,7 +332,7 @@ elation.require(['janusweb.janusbase'], function() {
         console.log('load that room', this.portalroom);

         var scene = new THREE.Scene();
-        scene.background = this.portalroom.skyboxtexture
+        scene.background = this.portalroom.skyboxtexture;
         scene.add(this.portalroom.objects['3d']);
         this.scene = scene;
         this.scene.updateMatrixWorld(true);

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