roojs-core.js
[roojs1] / Roo / doc / Entry.js
index 45e5140..da7a78c 100644 (file)
@@ -2,8 +2,6 @@
  * - LGPL
  *
  *  Documentation - designed to generate HTML+Docbook!?!
-                              
  */
 Roo.doc = Roo.doc || {};
 
@@ -11,8 +9,8 @@ Roo.doc = Roo.doc || {};
  * @class Roo.doc.Entry
  * @extends Roo.bootstrap.Component
  * Entry Element class - describes a method etc...
- * @name {String} name of method
- * @purpose {String} short description of method.
+ * @cfg name {String} name of method
+ * @cfg purpose {String} short description of method.
  * 
  * @constructor
  * Create a new E
@@ -21,9 +19,10 @@ Roo.doc = Roo.doc || {};
 
 
 
-Roo.mailer.Body  = function(config){
-    Roo.mailer.Body.superclass.constructor.call(this, config);
+Roo.doc.Entry  = function(config){
+    Roo.doc.Entry.superclass.constructor.call(this, config);
     //this.el = Roo.get(document.body);
+    /*
     var body = Roo.get(document.body);
     body.attr({
         leftmargin : 0,
@@ -32,19 +31,19 @@ Roo.mailer.Body  = function(config){
         marginheight : 0,
         offset : 0
     });
-    Roo.mailer.Body._calls++;
-    if (Roo.mailer.Body._calls > 1) {
-        throw "test";
-    }
+    
+     
     // call onRender once... and block next call...?
     this.onRender(body);
-    this.onRender = function() { };
+    this.el = body;
+    //this.onRender = function() { };
+    */
 
 };
 
-Roo.mailer.Body._calls = 0;
+//Roo.doc.Entry._calls = 0;
 
-Roo.extend(Roo.mailer.Body, Roo.bootstrap.Component,  {
+Roo.extend(Roo.doc.Entry, Roo.bootstrap.Component,  {
     
     
     name : '',
@@ -67,9 +66,7 @@ Roo.extend(Roo.mailer.Body, Roo.bootstrap.Component,  {
             ]
         };
         
-        
          
-       
         return cfg;
     },
     
@@ -77,9 +74,20 @@ Roo.extend(Roo.mailer.Body, Roo.bootstrap.Component,  {
     {
         return this.addxtypeChild(tree,cntr);
     }
-
-    
+    /*
+    onRender : function(ct, position)
+    {
+        
+        Roo.doc.Entry._calls++;
+        if (Roo.doc.Entry._calls > 1 || !ct) {
+            return;
+        }
+        
+    // call onRender once... and block next call...?
     
+        Roo.bootstrap.Component.prototype.onRender.call(this, ct, position);
+    }
+    */
    
 });