Roo/bootstrap/Component.js
authorAlan Knowles <alan@roojs.com>
Mon, 21 May 2018 05:26:34 +0000 (13:26 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 21 May 2018 05:26:34 +0000 (13:26 +0800)
Roo/bootstrap/Component.js

index dc49a90..280c25f 100644 (file)
@@ -241,7 +241,10 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
         var has_flexy = (typeof(tree['flexy:if']) != 'undefined') ||
                     (typeof(tree['flexy:foreach']) != 'undefined');
           
-        
+        if(this[cntr](true) === false){
+            tree.items = [];
+            return cn;
+        }
         
          skip_children = false;
         // render the element if it's not BODY.
@@ -319,8 +322,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
              }
             // then add the element..
         }
-        
-        
+         
         // handle the kids..
         
         var nitems = [];