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

index 7f27344..4a83188 100644 (file)
@@ -381,18 +381,21 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
     },
     
     
-    addxtypeChildren: function(child_array)
+    addxtypeChildren: function(child_array, skip_children)
     {
        var nitems = [];
        if (!child_array || !child_array.length) {
             this.items = nitems;
-            return this;
+            return;
         }
        for(var i =0;i < child_array.length;i++) {
        //  Roo.log(['add child', items[i]]);
-         nitems.push(this.addxtype(Roo.apply({}, child_array[i])));
-      }
-       
+           nitems.push(this.addxtype(Roo.apply({}, child_array[i])));
+       }
+       this.items = nitems;
+        
+        this.fireEvent('childrenrendered', this);
+        
        
     },