roojs-bootstrap.js
[roojs1] / Roo / bootstrap / Component.js
index b5789bd..c14252d 100644 (file)
@@ -197,7 +197,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
         if (!has_flexy_each || !build_from_html || is_body || !page_has_body) {
             if(!has_flexy_if || typeof(tree.name) == 'undefined' || !build_from_html || is_body || !page_has_body){
                 //return this.addxtypeChild(tree,cntr, is_body);
-               return this.addxtypeChild(cn, cntr, is_body);
+               return this.addxtypeChild(tree, cntr, is_body);
             }
             
             var echild =self_cntr_el ? self_cntr_el.child('>*[name=' + tree.name + ']') : false;