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

index 10924af..48bbded 100644 (file)
@@ -84,11 +84,24 @@ function BuildLists () {
                 }
                 // now add it..
                 
-                var full_method_name = p.memberOf + '.' + p.type;
-                if (allmethods.indexOf(full_method_name) < 0) {
-                    allmethods.push(full_method_name);
+                if (!p.type || typeof(classes[p.type]) == 'undefined') {
+                    return;
+                }
+                if (typeof(methods[cls][p.type]) == 'undefined') {
+                    methods[cls][p.type] = [];
+                }
+                var fullname = m.memberOf + '.' + m.name;
+                if (allmethods.indexOf(fullname) < 0) {
+                    allmethods.push(fullname);
                 }
                 
+                if (methods[cls][p.type].indexOf(fullname) > -1) {
+                    return;
+                }
+                methods[cls][p.type].push(fullname);
+                 
+               
+                
                 if (typeof(methods[cls][full_method_name]) == 'undefined') {
                     methods[cls][full_method_name] = [];
                 }