From c716cdce20c0a90ac6c6b8544a393792d7d651a9 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Fri, 6 Jan 2012 21:08:15 +0000 Subject: [PATCH] Added support for macros that are dependent on all other tiddlers --- js/WikiStore.js | 1 + js/WikiTextRules.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/js/WikiStore.js b/js/WikiStore.js index 844cf50bf..2f4ac27ec 100755 --- a/js/WikiStore.js +++ b/js/WikiStore.js @@ -351,6 +351,7 @@ WikiStore.prototype.installMacros = function() { } }, list: { + dependantAll: true, // Tiddlers containing <> macro are dependent on every tiddler params: { type: {byName: "default", type: "text", optional: false}, template: {byName: true, type: "tiddler", optional: true}, diff --git a/js/WikiTextRules.js b/js/WikiTextRules.js index c57f15256..874e3a536 100755 --- a/js/WikiTextRules.js +++ b/js/WikiTextRules.js @@ -114,7 +114,9 @@ var parseMacroCall = function(w,name,paramString) { if(macro) { var args = new ArgParser(paramString,{defaultName: "anon"}), insertParam = function(param,name,arg) { - if(param.type === "tiddler") { + if(param.dependantAll) { + w.dependencies = null; + } else if(param.type === "tiddler") { if(arg.evaluated) { w.dependencies = null; } else {