mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Fixed handling of "dependentAll" macros
Like <<list>>
This commit is contained in:
parent
3a98cc5389
commit
3560703078
@ -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};
|
||||
|
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user