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

index 7b33944..ff9ffd0 100644 (file)
@@ -37,9 +37,16 @@ NameSpace   = imports.Introspect.NameSpace.NameSpace;
 Link        = imports.Introspect.Link.Link; 
 
 
+Array.prototype.pushUnique(v) {
+    if (this.indexOf(v) < 0) {
+        this.push(v);
+    }
+}
 
 function BuildLists () {
  
+    
 
     var ns_list = [ 'Gtk' ] ; //NameSpace.namespaces();
      
@@ -127,6 +134,7 @@ function BuildLists () {
                 //    methods[addable_type].can_be_added_to.push(cls);
                 //}
                 
+                
                 var add = m.memberOf '+:'+ m.name;
                 
                 if (typeof(methods[addable_type].can_be_added_to_as[cls]) == 'undefined') {