1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-27 02:20:28 +00:00

Fixed tiddler exposure to evaluated parameters

This commit is contained in:
Jeremy Ruston 2012-05-02 17:27:13 +01:00
parent ff8ef8b8d2
commit 0784d9754c

View File

@ -139,7 +139,7 @@ Macro.prototype.execute = function(parents,tiddlerTitle) {
} }
for(var p in this.srcParams) { for(var p in this.srcParams) {
if(typeof this.srcParams[p] === "function") { if(typeof this.srcParams[p] === "function") {
this.params[p] = this.srcParams[p](tiddler,this.wiki); this.params[p] = this.srcParams[p](tiddler.fields,this.wiki);
} else { } else {
this.params[p] = this.srcParams[p]; this.params[p] = this.srcParams[p];
} }