XObject.js
authoralan <alan@alanfast.akbkhome.com>
Thu, 15 Apr 2010 10:48:37 +0000 (18:48 +0800)
committeralan <alan@alanfast.akbkhome.com>
Thu, 15 Apr 2010 10:48:37 +0000 (18:48 +0800)
XObject.js

index 63ffadd..d20ce2a 100644 (file)
@@ -142,7 +142,7 @@ XObject.prototype = {
         //Seed.print('Pack ' + o.xtype + '.'+ pack_m + '(' + o.items[i].xtype + ')');
         // copy.
         var args = Array.prototype.slice.call(typeof(item.pack) == 'string' ? [] : item.pack);
-        item.pack.unshift(item.el);
+        args.unshift(item.el);
         //Seed.print('args: ' + args.length);
         if (pack_m) {
             this.el[pack_m].apply(item.el, args);