From: Alan Knowles Date: Thu, 9 Aug 2012 04:33:00 +0000 (+0800) Subject: tools/build_gtk_tree.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=c45564b04bb1eecbdc11330b7bfba7bf428352ff tools/build_gtk_tree.js --- diff --git a/tools/build_gtk_tree.js b/tools/build_gtk_tree.js index 71093b2b3..221b0503f 100644 --- a/tools/build_gtk_tree.js +++ b/tools/build_gtk_tree.js @@ -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;