mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-12 02:10:27 +00:00
Allow filterTiddlers to be used on a hashmap of tiddlers
This commit is contained in:
parent
61c501e5a3
commit
7b4da4319a
@ -12,9 +12,9 @@ Adds tiddler filtering to the $tw.Wiki object.
|
|||||||
/*global $tw: false */
|
/*global $tw: false */
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.filterTiddlers = function(filterString,currTiddlerTitle) {
|
exports.filterTiddlers = function(filterString,currTiddlerTitle,tiddlerList) {
|
||||||
var fn = this.compileFilter(filterString);
|
var fn = this.compileFilter(filterString);
|
||||||
return fn.call(this,this.tiddlers,currTiddlerTitle);
|
return fn.call(this,tiddlerList || this.tiddlers,currTiddlerTitle);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user