remove debugging code
[roojs1] / Roo / doc / Entry.js
index d77bd22..da7a78c 100644 (file)
@@ -22,6 +22,7 @@ Roo.doc = Roo.doc || {};
 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,
@@ -30,17 +31,17 @@ 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() { };
+    */
 
 };
 
-Roo.doc.Entry._calls = 0;
+//Roo.doc.Entry._calls = 0;
 
 Roo.extend(Roo.doc.Entry, Roo.bootstrap.Component,  {
     
@@ -65,9 +66,7 @@ Roo.extend(Roo.doc.Entry, Roo.bootstrap.Component,  {
             ]
         };
         
-        
          
-       
         return cfg;
     },
     
@@ -75,9 +74,20 @@ 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 || !ct) {
+            return;
+        }
+        
+    // call onRender once... and block next call...?
     
+        Roo.bootstrap.Component.prototype.onRender.call(this, ct, position);
+    }
+    */
    
 });