1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Fixed cascading for with: parameters to tiddler macro

This commit is contained in:
Jeremy Ruston 2011-12-09 14:51:47 +00:00
parent 1e015c72dd
commit 91c183480c

View File

@ -94,7 +94,7 @@ wikiTextMacros.macros = {
today: { today: {
handler: function(macroNode,store,title) { handler: function(macroNode,store,title) {
var now = new Date(), var now = new Date(),
args = new ArgParser(macroNode.params,{noNames:true}), args = new ArgParser(macroNode.params,{noNames:true,cascadeDefaults:true}),
value = args.byPos[0] ? utils.formatDateString(now,args.byPos[0].v) : now.toLocaleString(); value = args.byPos[0] ? utils.formatDateString(now,args.byPos[0].v) : now.toLocaleString();
macroNode.output.push({type: "text", value: value}); macroNode.output.push({type: "text", value: value});
} }