tools/build_gtk_tree.js
authorAlan Knowles <alan@roojs.com>
Thu, 9 Aug 2012 05:06:20 +0000 (13:06 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 9 Aug 2012 05:06:20 +0000 (13:06 +0800)
tools/build_gtk_tree.js

index 6b47426..aba562c 100644 (file)
@@ -160,6 +160,9 @@ function BuildLists () {
                 
                 
                 implementations[addable_type].forEach(function(addable_child) {
+                    if (typeof(methods[addable_child].can_be_added_to_as[cls]) == 'undefined') {
+                        methods[addable_child].can_be_added_to_as[cls]=[];
+                    }
                     methods[addable_child].can_be_added_to_as[cls].pushUnique( add );
                     implementations[cls].forEach(function(imp) {
                         if (typeof(methods[addable_child ].can_be_added_to_as[imp]) == 'undefined') {