Roo/bootstrap/Body.js
authorAlan Knowles <alan@roojs.com>
Thu, 21 Feb 2019 07:51:43 +0000 (15:51 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 Feb 2019 07:51:43 +0000 (15:51 +0800)
Roo/bootstrap/Body.js

index 64c52dd..d335b4b 100644 (file)
@@ -26,14 +26,15 @@ Roo.bootstrap.Body = function(config){
     if (this.cls && this.cls.length) {
         Roo.get(document.body).addClass(this.cls);
     }
-    if (this.do_render) {
-       this.onRender(do_render, '')
+    if (config.do_render) {
+       this.onRender(config.do_render, '')
     }
     
 };
 
 Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
 
+    do_render : false,
     is_body : true,// just to make sure it's constructed?
 
     autoCreate : {
@@ -41,7 +42,8 @@ Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
     },
     onRender : function(ct, position)
     {
-       /* Roo.log("Roo.bootstrap.Body - onRender");
+        
+        /* Roo.log("Roo.bootstrap.Body - onRender");
         if (this.cls && this.cls.length) {
             Roo.get(document.body).addClass(this.cls);
         }