1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-30 07:50:47 +00:00

Remove negation from function operator

This implementation was not useful.
This commit is contained in:
jeremy@jermolene.com 2022-09-11 10:48:37 +01:00
parent 68a1d61f33
commit cc7b276787

View File

@ -25,18 +25,7 @@ exports.function = function(source,operator,options) {
var value = operator.operands[1 + index]; // Skip over the first operand that gives the function name
variables[param.name] = value === undefined ? param["default"] || "" : value;
});
var list = options.wiki.filterTiddlers(customDefinition.srcVariable.value,options.widget.makeFakeWidgetWithVariables(variables),source);
if(operator.prefix === "!") {
var results = [];
source(function(tiddler,title) {
if(list.indexOf(title) === -1) {
results.push(title);
}
});
return results;
} else {
return list;
}
return options.wiki.filterTiddlers(customDefinition.srcVariable.value,options.widget.makeFakeWidgetWithVariables(variables),source);
}
// Return the input list if the function wasn't found
var results = [];