mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-03 14:59:57 +00:00
Clean up unknown filter
This commit is contained in:
parent
0c3f82855b
commit
bd9d7c3d6a
@ -26,11 +26,8 @@ exports["[unknown]"] = function(source,operator,options) {
|
||||
var variables = Object.create(null);
|
||||
// Go through each of the defined parameters, and make a variable with the value of the corresponding operand
|
||||
$tw.utils.each(customDefinition.srcVariable.params,function(param,index) {
|
||||
var value = operator.operands["" + index];
|
||||
if(value === undefined) {
|
||||
value = param["default"] || "";
|
||||
}
|
||||
variables[param.name] = value;
|
||||
var value = operator.operands[index];
|
||||
variables[param.name] = value === undefined ? param["default"] || "" : value;
|
||||
});
|
||||
var list = options.wiki.filterTiddlers(customDefinition.srcVariable.value,options.widget.makeFakeWidgetWithVariables(variables),source);
|
||||
if(operator.prefix === "!") {
|
||||
|
Loading…
Reference in New Issue
Block a user