X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JsTemplate%2FTemplate.js;h=401121d0bc696bb6b946aac716f5e98b23c245b4;hp=ed8ae29358b2840035883183e2d4b07bfde9aab9;hb=2a10119befba6ac7ea16a3df614a64078890158d;hpb=9e21f9548257f988616da849498d3dd1ea43d13c diff --git a/JsTemplate/Template.js b/JsTemplate/Template.js index ed8ae29..401121d 100644 --- a/JsTemplate/Template.js +++ b/JsTemplate/Template.js @@ -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(); }, @@ -132,7 +132,7 @@ Template = XObject.define( var values = this.values; var makeSortby = this.makeSortby; - var makeSignature = this.makeSignature; + var makeSignature = = XObject.createDelegate(this.makeSignature, this); var summarize = this.summarize ; var makeFuncSkel = this.makeFuncSkel; var resolveLinks = this.resolveLinks; @@ -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 )) + " " : "" ) +