DataObjects/core.sql
[Pman.Core] / Pman.js
diff --git a/Pman.js b/Pman.js
index 31e4560..a444578 100644 (file)
--- a/Pman.js
+++ b/Pman.js
@@ -19,7 +19,7 @@ if (typeof(_T) == 'undefined') { _T={};}
  
 
 
-Roo.XComponent.on('register', function(e) { return Pman.xregister(e); });
+Roo.XComponent.on('register', function(e) { if (typeof(Pman) != 'undefined') { return Pman.xregister(e); } });
 Roo.XComponent.on('buildComplete',  
      function() {
                     
@@ -116,7 +116,7 @@ Pman = new Roo.Document(
         
     },
    
-    fakeRoot :  new XComponent( {
+    fakeRoot :  new Roo.XComponent( {
         modKey : '000',
         module : 'Pman',
         region : 'center',
@@ -124,7 +124,8 @@ Pman = new Roo.Document(
         isTop : true,
         name : "Pman Base",
         disabled : false, 
-        permname: '' 
+        permname: '' ,
+        render : function (el) { this.el = this.layout; }
     }),
     
     layout: false,
@@ -173,13 +174,14 @@ Pman = new Roo.Document(
             }
             
         });
-        
-        
+        this.fakeRoot.layout = this.layout;
+        /*
         Pman.register( Roo.apply(this.fakeRoot, {
             layout : this.layout      
                 
                                  
         } ) );
+        */
         
         // creates all the modules ready to load..