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:
a9d4fa0
)
Builder/Provider/Palete/Base.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 14 May 2010 08:24:55 +0000
(16:24 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 14 May 2010 08:24:55 +0000
(16:24 +0800)
Builder/Provider/Palete/Base.js
patch
|
blob
|
history
diff --git
a/Builder/Provider/Palete/Base.js
b/Builder/Provider/Palete/Base.js
index
275cac2
..
bed107e
100644
(file)
--- a/
Builder/Provider/Palete/Base.js
+++ b/
Builder/Provider/Palete/Base.js
@@
-21,6
+21,17
@@
Base = XObject.define(
items : false, // the tree of nodes.
+ guessName : function(ar) // turns the object into full name.
+ {
+ // eg. xns: Roo, xtype: XXX -> Roo.xxx
+ if (typeof( ar['|xns'] ) == 'undefined' || typeof( ar['xtype'] ) == 'undefined') {
+ return '';
+ }
+
+ return ar['|xns'] +'.' + ar['xtype'];
+
+
+ },
/**
* gather a list of potentional objects that can be added..
*