JsTemplate/Template.js
[gnome.introspection-doc-generator] / JsTemplate / Template.js
index ed8ae29..b4c3211 100644 (file)
@@ -27,8 +27,8 @@ Template = XObject.define(
         }
         
         
-        this.template = Gio.simple_read(templateFile);
-        this.templateName = GLib.path_get_basename(templateFile);
+        this.template = Gio.simple_read(this.templateFile);
+        this.templateName = GLib.path_get_basename(this.templateFile);
         this.code = "";
         this.parse();
     }, 
@@ -201,7 +201,7 @@ Template = XObject.define(
 
         makeSignature : function(params) {
             if (!params) return "()";
-            var _this = this;
+            var Link = this.Link;
             var signature = "("        +
                 params.filter(
                     function($) {
@@ -214,7 +214,7 @@ Template = XObject.define(
                         return "" +
                             ($.isOptional ? "[" : "") +
                             (($.type) ? 
-                                (new _this.Link().toSymbol(
+                                (new Link().toSymbol(
                                     (typeof($.type) == 'object' ) ? 'Function' : $.type
                                 )) + " " :  ""
                             )   +