roojs-bootstrap.js
authorAlan Knowles <alan@roojs.com>
Thu, 21 Feb 2019 09:06:26 +0000 (17:06 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 Feb 2019 09:06:26 +0000 (17:06 +0800)
roojs-bootstrap-debug.js
roojs-calendar.js
roojs-calendar-debug.js
Roo/bootstrap/Component.js

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

index 62bf237..20c44d6 100644 (file)
@@ -419,7 +419,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
          
         var parent_ctnr = this[cntr](true);
        if(parent_ctnr === false){
-           return; // getChildContainer an return false explicitly to block children being added?
+           return false; // getChildContainer an return false explicitly to block children being added?
        }
        if(!parent_ctnr ){
            throw new Exception("could not find parent Container for item");
index e8a2995..bb48fb8 100644 (file)
@@ -433,7 +433,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
          
         var parent_ctnr = this[cntr](true);
        if(parent_ctnr === false){
-           return; // getChildContainer an return false explicitly to block children being added?
+           return false; // getChildContainer an return false explicitly to block children being added?
        }
        if(!parent_ctnr ){
            throw new Exception("could not find parent Container for item");
@@ -448,12 +448,8 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
             
         cn.render && cn.render(parent_ctnr);
                 
-             
-       
-        
-        
        cn.xAddChildren(tree.items || cn.items);
-       delete tree.items;
+       delete tree.items; // not really needed?
         return cn;
     },
     
index 857dfa0..7f912a1 100644 (file)
@@ -14,7 +14,7 @@ var G=F?F.child('>*[xtype]'):false;if(G){}if(G&&G.attr('xtype').split('.').pop()
 Roo.debug&&Roo.log(cn);}}if(E&&D&&!cn.el&&cn.can_build_overlaid){Roo.debug&&Roo.log('skipping render');Roo.debug&&Roo.log(A);if(!cn.el){Roo.debug&&Roo.log('skipping all children');skip_children=true;}}else{cn.render&&cn.render(this[B](true));}}cn.addxtypeChildren(A.items,skip_children);
 delete A.items;return cn;},addxtypeChildren:function(A,B){var C=[];if(!A||!A.length){this.items=C;return;}for(var i=0;i<A.length;i++){if(B){break;}C.push(this.addxtype(Roo.apply({},A[i])));}this.items=C;this.fireEvent('childrenrendered',this);},xAddChildren:function(A,B){var C=[];
 if(!A||!A.length){this.items=C;return;}for(var i=0;i<A.length;i++){if(B){break;}C.push(this.xAdd(Roo.apply({},A[i])));}this.items=C;this.fireEvent('childrenrendered',this);},xAdd:function(A,B,C){Roo.debug&&Roo.log('xadd:'+B);B=(typeof(B)=='undefined')?'getChildContainer':B;
-var D=this[B](true);if(D===false){return;}if(!D){throw new Exception("could not find parent Container for item");}var cn=Roo.factory(A);cn.parentType=this.xtype;cn.parentId=this.id;cn.render&&cn.render(D);cn.xAddChildren(A.items||cn.items);delete A.items;
+var D=this[B](true);if(D===false){return false;}if(!D){throw new Exception("could not find parent Container for item");}var cn=Roo.factory(A);cn.parentType=this.xtype;cn.parentId=this.id;cn.render&&cn.render(D);cn.xAddChildren(A.items||cn.items);delete A.items;
 return cn;},setVisibilityEl:function(el){this.visibilityEl=el;},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);}});
index a15ed43..9a9ca4a 100644 (file)
@@ -419,7 +419,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
          
         var parent_ctnr = this[cntr](true);
        if(parent_ctnr === false){
-           return; // getChildContainer an return false explicitly to block children being added?
+           return false; // getChildContainer an return false explicitly to block children being added?
        }
        if(!parent_ctnr ){
            throw new Exception("could not find parent Container for item");
@@ -434,9 +434,8 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
             
         cn.render && cn.render(parent_ctnr);
                 
-             
        cn.xAddChildren(tree.items || cn.items);
-       delete tree.items; // not really needeD?
+       delete tree.items; // not really needed?
         return cn;
     },
     
index 75aed5c..5198d6c 100644 (file)
@@ -12,7 +12,7 @@ var G=F?F.child('>*[xtype]'):false;if(G){}if(G&&G.attr('xtype').split('.').pop()
 Roo.debug&&Roo.log(cn);}}if(E&&D&&!cn.el&&cn.can_build_overlaid){Roo.debug&&Roo.log('skipping render');Roo.debug&&Roo.log(A);if(!cn.el){Roo.debug&&Roo.log('skipping all children');skip_children=true;}}else{cn.render&&cn.render(this[B](true));}}cn.addxtypeChildren(A.items,skip_children);
 delete A.items;return cn;},addxtypeChildren:function(A,B){var C=[];if(!A||!A.length){this.items=C;return;}for(var i=0;i<A.length;i++){if(B){break;}C.push(this.addxtype(Roo.apply({},A[i])));}this.items=C;this.fireEvent('childrenrendered',this);},xAddChildren:function(A,B){var C=[];
 if(!A||!A.length){this.items=C;return;}for(var i=0;i<A.length;i++){if(B){break;}C.push(this.xAdd(Roo.apply({},A[i])));}this.items=C;this.fireEvent('childrenrendered',this);},xAdd:function(A,B,C){Roo.debug&&Roo.log('xadd:'+B);B=(typeof(B)=='undefined')?'getChildContainer':B;
-var D=this[B](true);if(D===false){return;}if(!D){throw new Exception("could not find parent Container for item");}var cn=Roo.factory(A);cn.parentType=this.xtype;cn.parentId=this.id;cn.render&&cn.render(D);cn.xAddChildren(A.items||cn.items);delete A.items;
+var D=this[B](true);if(D===false){return false;}if(!D){throw new Exception("could not find parent Container for item");}var cn=Roo.factory(A);cn.parentType=this.xtype;cn.parentId=this.id;cn.render&&cn.render(D);cn.xAddChildren(A.items||cn.items);delete A.items;
 return cn;},setVisibilityEl:function(el){this.visibilityEl=el;},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);}});