Roo/doc/Entry.js
[roojs1] / Roo / doc / Entry.js
index 83e9f53..6ecd411 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) {
-        return;
-    }
+    
+     
     // call onRender once... and block next call...?
     this.onRender(body);
-    this.onRender = function() { };
+    this.el = body;
+    //this.onRender = function() { };
 
 };
 
@@ -76,12 +75,11 @@ Roo.extend(Roo.doc.Entry, Roo.bootstrap.Component,  {
         return this.addxtypeChild(tree,cntr);
     },
     
-    
     onRender : function(ct, position)
     {
         
         Roo.doc.Entry._calls++;
-        if (Roo.doc.Entry._calls > 1) {
+        if (Roo.doc.Entry._calls > 1 || !ct) {
             return;
         }