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

index c925e3b..92f975b 100644 (file)
@@ -127,6 +127,10 @@ function BuildLists () {
                 }
                 methods[addable_type].can_be_added_to_as[cls].push( {cls : m.name} );
                 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({ cls : m.name });
                 });