Roo/Template.js
[roojs1] / Roo / XComponent.js
index 65e6cff..99b60cd 100644 (file)
@@ -4,14 +4,7 @@
  */
  
 /**
- * 
- * This needs some more thought..
- * 
- * 
- * 
  * @class Roo.XComponent
- * @extends Roo.data.Observable
- * 
  * A delayed Element creator...
  * 
  * Mypart.xyx = new Roo.XComponent({
@@ -22,7 +15,7 @@
     region : 'xxxx'
     disabled : function() {} 
      
-    tree : function() {
+    tree : function() { // return an tree of xtype declared components
         var MODULE = this;
         return 
         {
@@ -31,8 +24,9 @@
         }
      ]
  *})
- * 
- * 
+ * @extends Roo.util.Observable
+ * @constructor
+ * @param cfg {Object} configuration of component
  * 
  */
 Roo.XComponent = function(cfg) {
@@ -143,7 +137,6 @@ Roo.apply(Roo.XComponent, {
     
     /**
      * Register components to be built later.
-     * @param {Object} details about module
      *
      * This solves the following issues
      * - Building is not done on page load, but after an authentication process has occured.
@@ -160,7 +153,8 @@ Roo.apply(Roo.XComponent, {
           parent : 'Pman.layout',
           disabled : false,  // or use a function..
         })
-     * 
+     
+     * * @param {Object} details about module
      */
     register : function(obj) {
         this.modules.push(obj);