projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JsTemplate/Template.js
[gnome.introspection-doc-generator]
/
JsTemplate
/
Template.js
diff --git
a/JsTemplate/Template.js
b/JsTemplate/Template.js
index
4cfbe8f
..
6adb708
100644
(file)
--- a/
JsTemplate/Template.js
+++ b/
JsTemplate/Template.js
@@
-132,7
+132,7
@@
Template = XObject.define(
var values = this.values;
var makeSortby = this.makeSortby;
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;
var summarize = this.summarize ;
var makeFuncSkel = this.makeFuncSkel;
var resolveLinks = this.resolveLinks;
@@
-141,15
+141,15
@@
Template = XObject.define(
Template.data = data;
var Link = this.Link;
Template.data = data;
var Link = this.Link;
-
+ var Options = imports.Options ? imports.Options.Options : false;
try {
eval(this.code);
try {
eval(this.code);
-
} catch (e) {
+ } catch (e) {
Gio.simple_write('/tmp/template.js', this.code);
Seed.print('in /tmp/template.js');
throw e;
Seed.quit();
Gio.simple_write('/tmp/template.js', this.code);
Seed.print('in /tmp/template.js');
throw e;
Seed.quit();
-
}
+ }
//File.write("/tmp/jstookit_eval.js", this.code);
//File.write("/tmp/jstookit_eval.js", this.code);
@@
-201,7
+201,7
@@
Template = XObject.define(
makeSignature : function(params) {
if (!params) return "()";
makeSignature : function(params) {
if (!params) return "()";
- var
_this = this
;
+ var
Link = this.Link
;
var signature = "(" +
params.filter(
function($) {
var signature = "(" +
params.filter(
function($) {
@@
-214,7
+214,7
@@
Template = XObject.define(
return "" +
($.isOptional ? "[" : "") +
(($.type) ?
return "" +
($.isOptional ? "[" : "") +
(($.type) ?
- (new
_this.
Link().toSymbol(
+ (new Link().toSymbol(
(typeof($.type) == 'object' ) ? 'Function' : $.type
)) + " " : ""
) +
(typeof($.type) == 'object' ) ? 'Function' : $.type
)) + " " : ""
) +