1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-07 01:08:06 +00:00

Fixed issue with widget not being available to filter operator, added test (#5640)

This commit is contained in:
Saq Imtiaz
2021-05-01 11:00:32 +02:00
committed by GitHub
parent cb34c695b5
commit 44df6fe52f
2 changed files with 4 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ exports.filter = function(source,operator,options) {
results = [],
target = operator.prefix !== "!";
source(function(tiddler,title) {
var list = filterFn.call(options.wiki,options.wiki.makeTiddlerIterator([title]));
var list = filterFn.call(options.wiki,options.wiki.makeTiddlerIterator([title]),options.widget);
if((list.length > 0) === target) {
results.push(title);
}