Roo/bootstrap/Component.js
authorAlan Knowles <alan@roojs.com>
Thu, 21 Feb 2019 07:32:02 +0000 (15:32 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 Feb 2019 07:32:02 +0000 (15:32 +0800)
Roo/bootstrap/Component.js

index efb3f85..74ce341 100644 (file)
@@ -384,13 +384,13 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
     addxtypeChildren: function(child_array)
     {
        var nitems = [];
-       if (!tree.items || !tree.items.length) {
+       if (!child_array || !child_array.length) {
             this.items = nitems;
-            //Roo.log(["no children", this]);
-            
-            return cn;
+            return this;
         }
        
+       
+       
     },