From: Alan Knowles Date: Tue, 18 May 2010 15:30:03 +0000 (+0800) Subject: XObject.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=93f0e9f0b178bd864621365ceb81df3db2ec4e4f XObject.js --- diff --git a/XObject.js b/XObject.js index 314ef8215..88edd8375 100644 --- a/XObject.js +++ b/XObject.js @@ -202,10 +202,11 @@ XObject.prototype = { // XObject.registry[o.xnsid][o.id] = this; //} - if (!this.parent) { + if (this.items) { var _this=this; - items.forEach(function(i) { + + this.items.forEach(function(i) { _this.addItem(i); }); }