roojs-ui.js
[roojs1] / Roo / bootstrap / Body.js
index 5cd5105..5f71236 100644 (file)
@@ -2,40 +2,36 @@
  * - LGPL
  *
  * Body
- * 
+ *
  */
 
 /**
  * @class Roo.bootstrap.Body
  * @extends Roo.bootstrap.Component
+ * @children Roo.bootstrap.Component 
+ * @parent none builder
  * Bootstrap Body class
- * 
+ *
  * @constructor
  * Create a new body
  * @param {Object} config The config object
  */
 
 Roo.bootstrap.Body = function(config){
+
+    config = config || {};
+
     Roo.bootstrap.Body.superclass.constructor.call(this, config);
-    
-    this.addEvents({
-        // raw events
-        /**
-         * @event resize
-         * When window resize
-         * @param {Roo.EventObject} e
-         */
-        "resize" : true
-    });
-    
-    this.el = Roo.get(document.body);
+    this.el = Roo.get(config.el ? config.el : document.body );
     if (this.cls && this.cls.length) {
         Roo.get(document.body).addClass(this.cls);
     }
 };
 
 Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
-      
+
+    is_body : true,// just to make sure it's constructed?
+
        autoCreate : {
         cls: 'container'
     },
@@ -47,21 +43,9 @@ Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
         }
         // style??? xttr???
         */
-    },
-    
-    initEvents: function() 
-    {
-        this.el.on('resize', this.onResize, this);
-       
-        
-    
-    },
-    
-    onResize: function ()
-    {
-        this.fireEvent('resize', this);
     }
-   
-});
 
\ No newline at end of file
+
+
+
+});