From: Alan Knowles Date: Tue, 10 Mar 2015 10:57:14 +0000 (+0800) Subject: Roo/bootstrap/Component.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=aee86c9f1b06c0fe8f150be1e577fb1261a845f6;p=roojs1 Roo/bootstrap/Component.js --- diff --git a/Roo/bootstrap/Component.js b/Roo/bootstrap/Component.js index 66aa2b94e8..287c18be57 100644 --- a/Roo/bootstrap/Component.js +++ b/Roo/bootstrap/Component.js @@ -266,10 +266,12 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent, { //Roo.log(items.length); // add the items.. - for(var i =0;i < items.length;i++) { - nitems.push(cn.addxtype(Roo.apply({}, items[i]))); + if (!skip_children) { + for(var i =0;i < items.length;i++) { + nitems.push(cn.addxtype(Roo.apply({}, items[i]))); + } } - + cn.items = nitems; return cn;