mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 12:19:11 +00:00
Reference correct wiki object
This commit is contained in:
parent
0b3efe179e
commit
9297b27b89
@ -18,7 +18,7 @@ Export our filter function
|
|||||||
exports.list = function(source,operator,options) {
|
exports.list = function(source,operator,options) {
|
||||||
var results = [],
|
var results = [],
|
||||||
tr = $tw.utils.parseTextReference(operator.operand),
|
tr = $tw.utils.parseTextReference(operator.operand),
|
||||||
list = $tw.wiki.getTiddlerList(tr.title,tr.field,tr.index);
|
list = options.wiki.getTiddlerList(tr.title,tr.field,tr.index);
|
||||||
function checkTiddler(title) {
|
function checkTiddler(title) {
|
||||||
var match = list.indexOf(title) !== -1;
|
var match = list.indexOf(title) !== -1;
|
||||||
if(operator.prefix === "!") {
|
if(operator.prefix === "!") {
|
||||||
|
Loading…
Reference in New Issue
Block a user