roojs-doc.js
[roojs1] / roojs-doc-debug.js
index f367b5f..8708eef 100644 (file)
@@ -30,13 +30,12 @@ Roo.doc.Entry  = function(config){
         marginheight : 0,
         offset : 0
     });
-    Roo.doc.Entry._calls++;
-    if (Roo.doc.Entry._calls > 1) {
-        throw "test";
-    }
+    
+     
     // call onRender once... and block next call...?
     this.onRender(body);
-    this.onRender = function() { };
+    this.el = body;
+    //this.onRender = function() { };
 
 };
 
@@ -74,10 +73,20 @@ Roo.extend(Roo.doc.Entry, Roo.bootstrap.Component,  {
     addxtype :   function (tree, cntr)
     {
         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);
+    }
    
 });
 
@@ -418,7 +427,8 @@ Roo.extend(Roo.doc.Synopsis, Roo.bootstrap.Component,  {
                                     {
                                         tag: 'span',
                                         cls : 'roo-params'
-                                    }
+                                    },
+                                    ')'
                                 ]
                                 
                             }