1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Fixed handling of "dependentAll" macros

Like <<list>>
This commit is contained in:
Jeremy Ruston 2012-01-07 18:34:20 +00:00
parent 3a98cc5389
commit 3560703078
2 changed files with 5 additions and 4 deletions

View File

@ -112,11 +112,12 @@ var parseMacroCall = function(w,name,paramString) {
var macro = w.store.macros[name],
params = {};
if(macro) {
if(macro.dependentAll) {
w.addDependency(null);
}
var args = new ArgParser(paramString,{defaultName: "anon"}),
insertParam = function(param,name,arg) {
if(param.dependantAll) {
w.addDependency(null);
} else if(param.type === "tiddler") {
if(param.type === "tiddler") {
w.addDependency(arg.evaluated ? null : arg.string);
}
params[name] = {type: arg.evaluated ? "eval" : "string", value: arg.string};

View File

@ -12,7 +12,7 @@ var utils = require("../Utils.js");
exports.macro = {
name: "list",
types: ["text/html","text/plain"],
dependantAll: true, // Tiddlers containing <<list>> macro are dependent on every tiddler
dependentAll: true, // Tiddlers containing <<list>> macro are dependent on every tiddler
params: {
type: {byName: "default", type: "text", optional: false},
template: {byName: true, type: "tiddler", optional: true},