XObject.extend(this, cfg)
//this.templateFile = templateFile;
if (!this.templateFile || !this.Link) {
- throw {
- "No templateFile or Link sent to Template Contructor..";
- }
+ throw "No templateFile or Link sent to Template Contructor..";
+
}
- 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();
},
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;
makeSignature : function(params) {
if (!params) return "()";
- var _this = this;
+ var Link = this.Link;
var signature = "(" +
params.filter(
function($) {
return "" +
($.isOptional ? "[" : "") +
(($.type) ?
- (new _this.Link().toSymbol(
+ (new Link().toSymbol(
(typeof($.type) == 'object' ) ? 'Function' : $.type
)) + " " : ""
) +