repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 124e51eeffdb3a2244b7c1b064b25dbe218173e9:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 124e51eeffdb3a2244b7c1b064b25dbe218173e9
Author: James Baicoianu 
Date:   Sun Jul 16 22:11:23 2017 -0700

    Default value for portal.size

diff --git a/scripts/portal.js b/scripts/portal.js
index 21fefd558a38e3888f5f43d4556f699c02db6868..
index ..a2750bb42649761e0fa77a28919d5054b68c9b7b 100644
--- a/scripts/portal.js
+++ b/scripts/portal.js
@@ -6,7 +6,7 @@ elation.require(['janusweb.janusbase'], function() {
         'title': { type: 'string' },
         'janus': { type: 'object' },
         //'color': { type: 'color', default: new THREE.Color(0xffffff), set: this.updateMaterial },
-        'size': { type: 'vector3', set: this.updateGeometry },
+        'size': { type: 'vector3', default: new THREE.Vector3(1,1,1), set: this.updateGeometry },
         'url': { type: 'string', set: this.updateTitle },
         'open': { type: 'boolean', default: false },
         'title': { type: 'string', set: this.updateTitle },
@@ -275,8 +275,8 @@ elation.require(['janusweb.janusbase'], function() {
     this.useBlur = function(ev) {
       this.unhover();
     }
-    this.getProxyObject = function() {
-      var proxy = elation.engine.things.janusobject.extendclass.getProxyObject.call(this);
+    this.getProxyObject = function(classdef) {
+      var proxy = elation.engine.things.janusobject.extendclass.getProxyObject.call(this, classdef);
       proxy._proxydefs = {
         url: ['property', 'url'],
         title: ['property', 'title'],

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