mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 07:44:51 +00:00
Remove negation from function operator
This implementation was not useful.
This commit is contained in:
parent
68a1d61f33
commit
cc7b276787
@ -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
|
var value = operator.operands[1 + index]; // Skip over the first operand that gives the function name
|
||||||
variables[param.name] = value === undefined ? param["default"] || "" : value;
|
variables[param.name] = value === undefined ? param["default"] || "" : value;
|
||||||
});
|
});
|
||||||
var list = options.wiki.filterTiddlers(customDefinition.srcVariable.value,options.widget.makeFakeWidgetWithVariables(variables),source);
|
return 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 the input list if the function wasn't found
|
// Return the input list if the function wasn't found
|
||||||
var results = [];
|
var results = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user