Builder/Provider/File/Roo.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 27 May 2010 05:25:46 +0000 (13:25 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 27 May 2010 05:25:46 +0000 (13:25 +0800)
Builder/Provider/File/Roo.js

index 105c661..a2e57dc 100755 (executable)
@@ -216,6 +216,18 @@ Roo = XObject.define(
             
             
             
+        },
+         /**
+         * convert xtype for munged output..
+         * 
+         */
+        mungeXtype : function(xtype, els)
+        {
+            var bits = xtype.split('.');
+            // assume it has lenght!
+            
+            els.push("xtype: '"+ bits.pop()+"'");
+            els.push('xns: '+ bits.join('.'));
         },
         
         /**
@@ -301,7 +313,7 @@ Roo = XObject.define(
         // a layout compoent 
         toSourceLayout : function() 
         {
-            var b = this.items[0]; 
+            var b = this.items[0];
             var o = this.mungePropObj(this.items[0]);
             
             var disabled = typeof(b['|disabled']) == 'undefined' ? (b.disabled || false) : b['disabled'];