XObject.js
authorAlan Knowles <alan@akkbhome.com>
Tue, 18 May 2010 15:30:03 +0000 (23:30 +0800)
committerAlan Knowles <alan@akkbhome.com>
Tue, 18 May 2010 15:30:03 +0000 (23:30 +0800)
XObject.js

index 314ef82..88edd83 100644 (file)
@@ -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);
             });
         }