Clones.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 05:05:29 +0000 (13:05 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 05:05:29 +0000 (13:05 +0800)
Clones.vala

Clones.bjs
Clones.vala

index 12f0f51..deebd2e 100644 (file)
           },
           {
            "id" : "tv_last_updated",
-           "* init" : "function() {\n    XObject.prototype.init.call(this);\n    this.el.add_attribute(this.items[0].el , 'markup', 3 );\n\n}\n",
+           "* init" : "\n    this.el.add_attribute(_this.cr_last_updated.el , 'markup', 3 );\n",
            "* pack" : "append_column",
            "title" : "Last updated",
            "xtype" : "TreeViewColumn",
index e45a25a..b87a9a3 100644 (file)
@@ -866,11 +866,7 @@ public class Clones : Object
 
             // init method
 
-            function() {
-                XObject.prototype.init.call(this);
-                this.el.add_attribute(this.items[0].el , 'markup', 3 );
-            
-            }
+            this.el.add_attribute(_this.cr_last_updated.el , 'markup', 3 );
         }
 
         // user defined functions