projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
741a51a
)
builder.html.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 26 May 2010 06:54:57 +0000
(14:54 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 26 May 2010 06:54:57 +0000
(14:54 +0800)
builder.html.js
patch
|
blob
|
history
diff --git
a/builder.html.js
b/builder.html.js
index
bab253e
..
8717d53
100644
(file)
--- a/
builder.html.js
+++ b/
builder.html.js
@@
-184,7
+184,9
@@
Builder = {
// alert(cfg[p]);
// }
// alert(cfg[p]);
// }
- } catch(e) { console.log('Error evaluating: ' + cfg[p] + "\r\n" + JSON.stringify(e)); };
+ } catch(e) {
+ console.log('Error evaluating: ' + cfg[p] + "\r\n" + JSON.stringify(e));
+ };
delete cfg[p];
delete cfg[p];
@@
-199,6
+201,19
@@
Builder = {
}
}
+ if (cfg.xtype && cfg.xtype.match(/^Roo\./) && !cfg.xns) {
+ // xtype contains full path..
+ var bits = cfg.xtype.split('.');
+ bits.shift(); // remove roo..
+ cfg.xtype = bits.pop(); // get the last bit..
+ cfg.xns = Roo;
+ while (bits.length) {
+ cfg.xns = cfg.xns[bits.shift()];
+ }
+
+
+ }
+
// we can overlay some event handlers here..
cfg.listeners = cfg.listeners || {};
// we can overlay some event handlers here..
cfg.listeners = cfg.listeners || {};