Sample/Window.js
authorAlan Knowles <alan@akkbhome.com>
Wed, 1 Dec 2010 14:10:53 +0000 (22:10 +0800)
committerAlan Knowles <alan@akkbhome.com>
Wed, 1 Dec 2010 14:10:53 +0000 (22:10 +0800)
Sample/Window.js

index d178f29..1838f25 100644 (file)
@@ -3306,7 +3306,7 @@ Window=new XObject({
                                                                     {
                                                                     
                                                                         // does something similar to xobject..
-                                                                        item.pack = (typeof(item.pack) == 'undefined') ?  'add' : item.pack;
+                                                                        //item.pack = (typeof(item.pack) == 'undefined') ?  'add' : item.pack;
                                                                         
                                                                         // pack is forced to 'false'
                                                                         if (item.pack===false || item.pack === 'false') {  // no ;
@@ -3372,7 +3372,7 @@ Window=new XObject({
                                                                         } 
                                                                         var altctr =  XObject.baseXObject({ xtype:  ctr} );
                                                                         var pack_m  = false;
-                                                                        if (!item.pack && altctr !== false) {
+                                                                        if (!item.pack && altctr) {
                                                                             // try XObject.
                                                                             print("SETTING PACK TO XObjectBase method");
                                                                             pack_m = altctr.prototype.pack;
@@ -3390,6 +3390,7 @@ Window=new XObject({
                                                                         
                                                                         var args = [];
                                                                         if (!pack_m) {
+                                                                            item.pack = (typeof(item.pack) == 'undefined') ?  'add' : item.pack;
                                                                             if (typeof(item.pack) == 'string') {
                                                                                  
                                                                                 item.pack.split(',').forEach(function(e, i) {