Roo/bootstrap/Body.js
authorjohn <john@roojs.com>
Fri, 22 Sep 2017 06:21:52 +0000 (14:21 +0800)
committerjohn <john@roojs.com>
Fri, 22 Sep 2017 06:21:52 +0000 (14:21 +0800)
Roo/bootstrap/Body.js

index 3d862aa..914481d 100644 (file)
@@ -2,20 +2,23 @@
  * - LGPL
  *
  * Body
- * 
+ *
  */
 
 /**
  * @class Roo.bootstrap.Body
  * @extends Roo.bootstrap.Component
  * 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(config.el ? config.el : document.body );
     if (this.cls && this.cls.length) {
@@ -24,9 +27,9 @@ Roo.bootstrap.Body = function(config){
 };
 
 Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
-    
+
     is_body : true,// just to make sure it's constructed?
-    
+
        autoCreate : {
         cls: 'container'
     },
@@ -39,10 +42,8 @@ Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
         // style??? xttr???
         */
     }
-    
-    
-   
-});
 
\ No newline at end of file
+
+
+
+});