Roo/bootstrap/Component.js
authorleon <leon@roojs.com>
Wed, 22 Mar 2023 03:45:23 +0000 (11:45 +0800)
committerleon <leon@roojs.com>
Wed, 22 Mar 2023 03:45:23 +0000 (11:45 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

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

index ef59ab8..cacf75e 100644 (file)
@@ -195,7 +195,6 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
         
         // do not try and build conditional elements 
         if ((has_flexy_each || has_flexy_if || this.can_build_overlaid == false ) && build_from_html) {
-            Roo.log('RETURN');
             return false;
         }
         
@@ -205,6 +204,9 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
             }
             
             var echild =self_cntr_el ? self_cntr_el.child('>*[name=' + tree.name + ']') : false;
+
+            Roo.log('ECHILD');
+            Roo.log(echild);
                 
             if(echild){
                 return this.addxtypeChild(Roo.apply({}, tree),cntr);
index e2bde8a..bf78c08 100644 (file)
@@ -424,6 +424,9 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
             }
             
             var echild =self_cntr_el ? self_cntr_el.child('>*[name=' + tree.name + ']') : false;
+
+            Roo.log('ECHILD');
+            Roo.log(echild);
                 
             if(echild){
                 return this.addxtypeChild(Roo.apply({}, tree),cntr);
@@ -443,9 +446,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
         // with the sam eelement.. - which might be buggy..
         while (true) {
             var echild =self_cntr_el ? self_cntr_el.child('>*[xtype]') : false;
-            Roo.log('COMPONENT WHILE');
-            Roo.log(echild);
-            Roo.log(cn);
+            
             if (!echild) {
                 break;
             }
index 30fe8e1..c5c2ee5 100644 (file)
@@ -33,8 +33,8 @@ this.el.dom.removeAttribute('xtype');this.initEvents();}return;}var B=Roo.apply(
 }if(this.tabIndex!==undefined){this.el.dom.setAttribute('tabIndex',this.tabIndex);}this.initEvents();},getChildContainer:function(){return this.el;},getDocumentBody:function(){return Roo.get(document.body);},tooltipEl:function(){return this.el;},addxtype:function(A,B){var cn=this;
 cn=Roo.factory(A);cn.parentType=this.xtype;cn.parentId=this.id;B=(typeof(B)=='undefined')?'getChildContainer':B;if(typeof(cn.container_method)=='string'){B=cn.container_method;}var C=(typeof(A['flexy:foreach'])!='undefined');var D=(typeof(A['flexy:if'])!='undefined');
 var E=Roo.XComponent.build_from_html;var F=(A.xtype=='Body');var G=(Roo.get(document.body).attr('xtype')=='Roo.bootstrap.Body');var H=Roo.get(this[B](false));if((C||D||this.can_build_overlaid==false)&&E){return false;}if(!C||!E||F||!G){if(!D||typeof(A.name)=='undefined'||!E||F||!G){return this.addxtypeChild(A,B,F);
-}var I=H?H.child('>*[name='+A.name+']'):false;if(I){return this.addxtypeChild(Roo.apply({},A),B);}Roo.log('skipping render');return cn;}var J=false;if(!E){return false;}while(true){var I=H?H.child('>*[xtype]'):false;Roo.log('COMPONENT WHILE');Roo.log(I);Roo.log(cn);
-if(!I){break;}if(I&&I.attr('xtype').split('.').pop()!=cn.xtype){break;}J=this.addxtypeChild(Roo.apply({},A),B);}return J;},addxtypeChild:function(A,B,C){Roo.debug&&Roo.log('addxtypeChild:'+B);var cn=this;B=(typeof(B)=='undefined')?'getChildContainer':B;var D=(typeof(A['flexy:if'])!='undefined')||(typeof(A['flexy:foreach'])!='undefined');
+}var I=H?H.child('>*[name='+A.name+']'):false;Roo.log('ECHILD');Roo.log(I);if(I){return this.addxtypeChild(Roo.apply({},A),B);}Roo.log('skipping render');return cn;}var J=false;if(!E){return false;}while(true){var I=H?H.child('>*[xtype]'):false;if(!I){break;
+}if(I&&I.attr('xtype').split('.').pop()!=cn.xtype){break;}J=this.addxtypeChild(Roo.apply({},A),B);}return J;},addxtypeChild:function(A,B,C){Roo.debug&&Roo.log('addxtypeChild:'+B);var cn=this;B=(typeof(B)=='undefined')?'getChildContainer':B;var D=(typeof(A['flexy:if'])!='undefined')||(typeof(A['flexy:foreach'])!='undefined');
 skip_children=false;if(!C){if(!this[B](true)){A.items=[];return A;}cn=Roo.factory(A);cn.parentType=this.xtype;cn.parentId=this.id;var E=Roo.XComponent.build_from_html;if(E&&Roo.get(document.body).attr('xtype')=='Roo.bootstrap.Body'){var F=Roo.get(this[B](false));
 var G=F?F.child('>*[xtype]'):false;if(G){}if(G&&G.attr('xtype').split('.').pop()==cn.xtype){cn.el=G;}else{Roo.debug&&Roo.log("MISSING "+cn.xtype+" on child of "+(this.el?this.el.attr('xbuilderid'):'no parent'));Roo.debug&&Roo.log(F);Roo.debug&&Roo.log(G);
 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));}}var H=[];if(!A.items||!A.items.length){cn.items=H;