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

index 7fecee4..fd3b566 100644 (file)
@@ -268,12 +268,21 @@ XObject.prototype = {
        
         
         if (item.pack===false) {  // no 
+            items.forEach(function(i) {
+                item.addItem(i);
+            });
+        
             return;
         }
         if (typeof(item.pack) == 'function') {
             // parent, child
             item.pack.apply(item, [ this , item  ]);
             item.parent = this;
+            
+            
+            items.forEach(function(i) {
+                item.addItem(i);
+            });
             return;
         }
         var args = [];