tools/build_gtk_tree.js
authorAlan Knowles <alan@roojs.com>
Thu, 9 Aug 2012 04:33:00 +0000 (12:33 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 9 Aug 2012 04:33:00 +0000 (12:33 +0800)
tools/build_gtk_tree.js

index 71093b2..221b050 100644 (file)
@@ -140,13 +140,13 @@ function BuildLists () {
                 if (typeof(methods[addable_type].can_be_added_to_as[cls]) == 'undefined') {
                     methods[addable_type].can_be_added_to_as[cls]=[];
                 }
-                methods[addable_type].can_be_added_to_as[cls].push( add );
+                methods[addable_type].can_be_added_to_as[cls].pushUnique( add );
                 implementations[cls].forEach(function(imp) {
                     if (typeof(methods[addable_type].can_be_added_to_as[imp]) == 'undefined') {
                         methods[addable_type].can_be_added_to_as[imp] = [];
                     }
                     
-                    methods[addable_type].can_be_added_to_as[imp].push(add);
+                    methods[addable_type].can_be_added_to_as[imp].pushUnique(add);
                 });
                 
                 return;