DependTree/BuildLists.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 2 Dec 2010 09:25:05 +0000 (17:25 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 2 Dec 2010 09:25:05 +0000 (17:25 +0800)
DependTree/BuildLists.js

index 3bf05f1..49d36ed 100644 (file)
@@ -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] = [];
                 }