repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 421ef1495ac3a7bf2ec2279e60fee67c3e339ae6:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 421ef1495ac3a7bf2ec2279e60fee67c3e339ae6
Author: James Baicoianu 
Date:   Sun Dec 24 04:24:52 2017 -0800

    Call object.create() if defined

diff --git a/scripts/janusbase.js b/scripts/janusbase.js
index d5eecb0045dd77370d48ecb97dbe821874429142..
index ..dc3975e956ce8c7b6c9adb6bc992d79400dca0fd 100644
--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -65,6 +65,11 @@ elation.require(['engine.things.generic', 'utils.template'], function() {
 //      elation.events.add(this.room, 'janusweb_script_frame_end', this.handleFrameUpdates);

     }
+    this.createChildren = function() {
+      if (typeof this.create == 'function') {
+        this.create();
+      }
+    }
     this.updateColor = function() {
       if (this.properties.color === this.defaultcolor) {
         if (this.color.r != 1 || this.color.g != 1 || this.color.b != 1) {

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