Roo.debug && Roo.log(this);
var tree = this._tree ? this._tree() : this.tree();
- var named_el = false;
if (!el && typeof(this.parent) == 'string' && this.parent.substring(0,1) == '#') {
var ename = this.parent.substr(1);
this.parent = false;
Roo.debug && Roo.log(ename);
- named_el = true;
switch (ename) {
case 'bootstrap-body':
if (typeof(tree.el) != 'undefined' && tree.el == document.body) {
// fall through
default:
el = Roo.get(ename);
-
+ this.parent = { el : true};
break;
}
- if (!this.parent && is_alt && !named_el) {
+ if (!this.parent && is_alt) {
//el = Roo.get(document.body);
this.parent = { el : true };
}
var is_body = false;
if (this.parent.el === true) {
// bootstrap... - body..
+ if (el) {
+ tree.el = el;
+ }
this.parent.el = Roo.factory(tree);
is_body = true;
}