roojs-bootstrap.js
authorAlan Knowles <alan@roojs.com>
Thu, 21 Feb 2019 08:59:59 +0000 (16:59 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 Feb 2019 08:59:59 +0000 (16:59 +0800)
roojs-bootstrap-debug.js
Roo/bootstrap/Body.js
Roo/bootstrap/Component.js

Roo/bootstrap/Body.js
Roo/bootstrap/Component.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index 2a808e2..84d09d6 100644 (file)
@@ -28,7 +28,7 @@ Roo.bootstrap.Body = function(config){
     }
     if (config.do_render) {
        this.onRender(config.do_render, '');
-       this.xaddChildren(config.items);
+       this.xAddChildren(config.items);
     }
     
 };
index b5789bd..c14252d 100644 (file)
@@ -197,7 +197,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
         if (!has_flexy_each || !build_from_html || is_body || !page_has_body) {
             if(!has_flexy_if || typeof(tree.name) == 'undefined' || !build_from_html || is_body || !page_has_body){
                 //return this.addxtypeChild(tree,cntr, is_body);
-               return this.addxtypeChild(cn, cntr, is_body);
+               return this.addxtypeChild(tree, cntr, is_body);
             }
             
             var echild =self_cntr_el ? self_cntr_el.child('>*[name=' + tree.name + ']') : false;
index 2f44740..5f11a8c 100644 (file)
@@ -474,7 +474,7 @@ Roo.bootstrap.Body = function(config){
     }
     if (config.do_render) {
        this.onRender(config.do_render, '');
-       this.addxtypeChildren(config.items);
+       this.xAddChildren(config.items);
     }
     
 };
index f4dcea5..453349f 100644 (file)
@@ -16,7 +16,7 @@ delete A.items;return cn;},addxtypeChildren:function(A,B){var C=[];if(!A||!A.len
 },getVisibilityEl:function(){if(typeof(this.visibilityEl)=='object'){return this.visibilityEl;}if(typeof(this.visibilityEl)=='string'){return this.visibilityEl=='parent'?this.parent().getEl():this.getEl();}return this.getEl();},show:function(){if(!this.getVisibilityEl()){return;
 }this.getVisibilityEl().removeClass(['hidden','d-none']);this.fireEvent('show',this);},hide:function(){if(!this.getVisibilityEl()){return;}this.getVisibilityEl().addClass(['hidden','d-none']);this.fireEvent('hide',this);}});
 // Roo/bootstrap/Body.js
-Roo.bootstrap.Body=function(A){A=A||{};Roo.bootstrap.Body.superclass.constructor.call(this,A);this.el=Roo.get(A.el?A.el:document.body);if(this.cls&&this.cls.length){Roo.get(document.body).addClass(this.cls);}if(A.do_render){this.onRender(A.do_render,'');this.addxtypeChildren(A.items);
+Roo.bootstrap.Body=function(A){A=A||{};Roo.bootstrap.Body.superclass.constructor.call(this,A);this.el=Roo.get(A.el?A.el:document.body);if(this.cls&&this.cls.length){Roo.get(document.body).addClass(this.cls);}if(A.do_render){this.onRender(A.do_render,'');this.xAddChildren(A.items);
 }};Roo.extend(Roo.bootstrap.Body,Roo.bootstrap.Component,{do_render:false,is_body:true,autoCreate:{cls:'container'},onRender:function(ct,A){if(!this.do_render){return;}this.el=Roo.get(this.do_render);}});
 // Roo/bootstrap/ButtonGroup.js
 Roo.bootstrap.ButtonGroup=function(A){Roo.bootstrap.ButtonGroup.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.ButtonGroup,Roo.bootstrap.Component,{size:'',align:'',direction:'',toolbar:false,btn:true,getAutoCreate:function(){var A={cls:'btn-group',html:null}