roojs-bootstrap.js
authorAlan Knowles <alan@roojs.com>
Fri, 22 Feb 2019 05:11:38 +0000 (13:11 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 22 Feb 2019 05:11:38 +0000 (13:11 +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 2f01086..a68c77e 100644 (file)
@@ -408,7 +408,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
      *   - turn the child.cfg into a child_instance
      *   - call child_instance.render( this { getContainerMethod()} )
      *   - loop through the children, and call addxtype.. (reall this) on newly created child.
-     * xAdd differs from addxtype - as it uses the 'items' returned from 
+     *  
      *
      * 
      */
index f4c4ee2..434aa85 100644 (file)
@@ -423,6 +423,8 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
      *   - call child_instance.render( this { getContainerMethod()} )
      *   - loop through the children, and call addxtype.. (reall this) on newly created child.
      *  
+     *
+     * 
      */
     
     xAdd : function (tree, cntr, is_body)
@@ -448,7 +450,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
             
         cn.render && cn.render(parent_ctnr);
                 
-       cn.xAddChildren(tree.items || cn.items);
+       cn.xAddChildren(tree.items);
        delete tree.items; // not really needed?
         return cn;
     },
index 7f912a1..1016ec5 100644 (file)
@@ -14,8 +14,8 @@ 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 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();
+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);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);}});
 // Roo/bootstrap/Body.js
index 9a9ca4a..75976c7 100644 (file)
@@ -409,6 +409,8 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
      *   - call child_instance.render( this { getContainerMethod()} )
      *   - loop through the children, and call addxtype.. (reall this) on newly created child.
      *  
+     *
+     * 
      */
     
     xAdd : function (tree, cntr, is_body)
@@ -434,7 +436,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
             
         cn.render && cn.render(parent_ctnr);
                 
-       cn.xAddChildren(tree.items || cn.items);
+       cn.xAddChildren(tree.items);
        delete tree.items; // not really needed?
         return cn;
     },
index 5198d6c..21fb4fb 100644 (file)
@@ -12,8 +12,8 @@ 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 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();
+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);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);}});
 // Roo/bootstrap/Calendar.js