projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8fbee7c
)
Roo/XComponent.js
author
Alan Knowles
<alan@roojs.com>
Thu, 21 Sep 2017 04:48:49 +0000
(12:48 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 21 Sep 2017 04:48:49 +0000
(12:48 +0800)
Roo/XComponent.js
patch
|
blob
|
history
diff --git
a/Roo/XComponent.js
b/Roo/XComponent.js
index
8052f42
..
c733e87
100644
(file)
--- a/
Roo/XComponent.js
+++ b/
Roo/XComponent.js
@@
-167,6
+167,7
@@
Roo.extend(Roo.XComponent, Roo.util.Observable, {
Roo.debug && Roo.log(this);
var tree = this._tree ? this._tree() : this.tree();
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) == '#') {
if (!el && typeof(this.parent) == 'string' && this.parent.substring(0,1) == '#') {
@@
-174,6
+175,7
@@
Roo.extend(Roo.XComponent, Roo.util.Observable, {
var ename = this.parent.substr(1);
this.parent = false;
Roo.debug && Roo.log(ename);
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) {
switch (ename) {
case 'bootstrap-body':
if (typeof(tree.el) != 'undefined' && tree.el == document.body) {
@@
-216,6
+218,7
@@
Roo.extend(Roo.XComponent, Roo.util.Observable, {
// fall through
default:
el = Roo.get(ename);
// fall through
default:
el = Roo.get(ename);
+
break;
}
break;
}