repo: janusweb action: commit revision: path_from: revision_from: bd38f93322665ae29efd3d854ab59b440039c9a5: path_to: revision_to:
commit bd38f93322665ae29efd3d854ab59b440039c9a5 Author: James BaicoianuDate: 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
--- 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-----