projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aca0e2
)
Roo/XComponent.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 10 Jun 2011 03:44:06 +0000
(11:44 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 10 Jun 2011 03:44:06 +0000
(11:44 +0800)
Roo/XComponent.js
patch
|
blob
|
history
diff --git
a/Roo/XComponent.js
b/Roo/XComponent.js
index
d21f93d
..
b2ffb62
100644
(file)
--- a/
Roo/XComponent.js
+++ b/
Roo/XComponent.js
@@
-216,10
+216,13
@@
Roo.apply(Roo.XComponent, {
{
obj.parent = this.toObject(obj.parent);
- if (!obj.parent
|| typeof(obj.parent) == 'string'
) {
+ if (!obj.parent) {
this.topModule = obj;
return;
}
+ if (typeof(obj.parent) == 'string') {
+ this.elmodules.push(obj)
+ }
if (!obj.parent.modules) {
obj.parent.modules = new Roo.util.MixedCollection(false,