major doc changes
[roojs1] / Roo / bootstrap / Body.js
index 720b7ea..ef4c9c1 100644 (file)
@@ -2,29 +2,37 @@
  * - LGPL
  *
  * Body
- * 
+ *
  */
 
 /**
  * @class Roo.bootstrap.Body
  * @extends Roo.bootstrap.Component
+ * @builder-top
+ * @children Roo.bootstrap.Component
+ * @parent none
  * 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.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'
     },
@@ -37,10 +45,8 @@ Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
         // style??? xttr???
         */
     }
-    
-    
-   
-});
 
\ No newline at end of file
+
+
+
+});