repo: janusweb
action: commit
revision: 
path_from: 
revision_from: bd38f93322665ae29efd3d854ab59b440039c9a5:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit bd38f93322665ae29efd3d854ab59b440039c9a5
Author: James Baicoianu 
Date:   Mon Apr 19 00:37:28 2021 -0700

    Exclude non-janus objects from object.children

diff --git a/scripts/janusbase.js b/scripts/janusbase.js
index 4ddabc2a4a182ba957bf8851bae260ad3d20fdc1..
index ..5a87c21c5638702256e8bde688d26f5887411a6a 100644
--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -944,7 +944,9 @@ elation.require(['engine.things.generic', 'utils.template', 'janusweb.parts'], f
       this.jschildren = [];
       var keys = Object.keys(this.children);
       for (var i = 0; i < keys.length; i++) {
-        this.jschildren.push(this.children[keys[i]].getProxyObject());
+        if (typeof this.children[keys[i]].getProxyObject == 'function') {
+          this.jschildren.push(this.children[keys[i]].getProxyObject());
+        }
       }
     }
     this.handleCollision = function(ev) {

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