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:
7db7858
)
DependTree/BuildLists.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 2 Dec 2010 09:25:05 +0000
(17:25 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 2 Dec 2010 09:25:05 +0000
(17:25 +0800)
DependTree/BuildLists.js
patch
|
blob
|
history
diff --git
a/DependTree/BuildLists.js
b/DependTree/BuildLists.js
index
3bf05f1
..
49d36ed
100644
(file)
--- a/
DependTree/BuildLists.js
+++ b/
DependTree/BuildLists.js
@@
-68,6
+68,8
@@
function BuildLists () {
var implementations = {};
var methods = {};
var allmethods = [];
+ var allchildren = [];
+
for (cls in classes) {
var odata = classes[cls];
@@
-87,6
+89,10
@@
function BuildLists () {
if (!p.type || typeof(classes[p.type]) == 'undefined') {
return;
}
+ if (allchildren.indexOf(p.type) < 0) {
+ allchildren.push(p.type);
+ }
+
if (typeof(methods[cls][p.type]) == 'undefined') {
methods[cls][p.type] = [];
}