Roo/bootstrap/Body.js
authorEdward <edward@roojs.com>
Fri, 13 Feb 2015 06:24:05 +0000 (14:24 +0800)
committerEdward <edward@roojs.com>
Fri, 13 Feb 2015 06:24:05 +0000 (14:24 +0800)
Roo/bootstrap/Body.js

index e026de8..720b7ea 100644 (file)
  * @param {Object} config The config object
  */
 
-Roo.bootstrap.Body = function(config)
-{
-    //Roo.log(config);
+Roo.bootstrap.Body = function(config){
     Roo.bootstrap.Body.superclass.constructor.call(this, config);
     this.el = Roo.get(document.body);
     if (this.cls && this.cls.length) {
         Roo.get(document.body).addClass(this.cls);
     }
-    this.initEvents();
-    this.fireEvent('render',this);
 };
 
 Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
@@ -34,12 +30,12 @@ Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
     },
     onRender : function(ct, position)
     {
-       
-        // code has to go in the constructor,
-        // as body is not really rendered, it just picks up the document.body in the 
-        // constructor.
-        
-       
+       /* Roo.log("Roo.bootstrap.Body - onRender");
+        if (this.cls && this.cls.length) {
+            Roo.get(document.body).addClass(this.cls);
+        }
+        // style??? xttr???
+        */
     }