DependTree/Window.js
[app.Builder.js] / DependTree / BuildLists.js
index 48bbded..2c858dd 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] = [];
                 }
@@ -100,15 +106,7 @@ function BuildLists () {
                 }
                 methods[cls][p.type].push(fullname);
                  
-               
                 
-                if (typeof(methods[cls][full_method_name]) == 'undefined') {
-                    methods[cls][full_method_name] = [];
-                }
-                if (methods[cls][full_method_name].indexOf(m.name) > -1) {
-                    return;
-                }
-                methods[cls][full_method_name].push(m.name);
                 
             });
             
@@ -120,8 +118,11 @@ function BuildLists () {
         
     }
     this.methods = methods;
-    this.allmethods = methods;
+    this.allmethods = allmethods;
+    this.allchildren = allchildren;
+
     this.implementations = implementations;
+    
     //print(JSON.stringify(methods,null,4));
     //print(JSON.stringify(implementations,null,4));