1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-05 00:08:06 +00:00

Refactored evaluation of macro dependencies

Now the dependencies are evaluated in the constructor for the
Renderer.MacroNode
This commit is contained in:
Jeremy Ruston
2012-02-20 19:27:37 +00:00
parent b37d3b6670
commit 53f652bf2a
6 changed files with 72 additions and 84 deletions

View File

@@ -48,7 +48,6 @@ exports.macro = {
"tiddler",
{target: target},
null,
new Dependencies([],[target]),
store)
]);
content.execute(macroNode.parents,tiddler);

View File

@@ -50,7 +50,6 @@ exports.macro = {
var m = Renderer.MacroNode("tiddler",
{target: tiddlers[t],template: macroNode.params.template},
null,
new Dependencies([],[tiddlers[t],macroNode.params.template]),
store);
m.execute(macroNode.parents,tiddler);
content.push(m);
@@ -83,7 +82,6 @@ exports.macro = {
var m = Renderer.MacroNode("tiddler",
{target: targetTiddlers[t],template: template},
null,
new Dependencies([],[targetTiddlers[t],template]),
store);
m.execute(macroNode.parents,store.getTiddler(targetTiddlers[t]));
m.renderInDom(macroNode.domNode,macroNode.domNode.childNodes[t]);

View File

@@ -34,7 +34,6 @@ exports.macro = {
var link = Renderer.MacroNode("link",
{target: v},
[Renderer.TextNode(v)],
new Dependencies([v]),
store);
link.execute(parents,tiddler);
return [link];