projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77ba6c1
)
roojs-debug.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 7 Jul 2011 04:29:00 +0000
(12:29 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 7 Jul 2011 04:29:00 +0000
(12:29 +0800)
roojs-debug.js
patch
|
blob
|
history
diff --git
a/roojs-debug.js
b/roojs-debug.js
index
28a2a33
..
07b2870
100644
(file)
--- a/
roojs-debug.js
+++ b/
roojs-debug.js
@@
-51382,8
+51382,13
@@
Roo.extend(Roo.XComponent, Roo.util.Observable, {
if (!el && typeof(this.parent) == 'string' && this.parent[0] == '#') {
// if parent is a '#.....' string, then let's use that..
+ var ename = this.parent.substr(1)
this.parent = false;
- el = Roo.get(m.substr(1));
+ el = Roo.get(ename);
+ if (!el) {
+ Roo.log("Warning - element can not be found :#" + ename );
+ return;
+ }
}
if (!this.parent) {