mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-04 17:16:18 +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 */
|
||||
"use strict";
|
||||
|
||||
exports.filterTiddlers = function(filterString,currTiddlerTitle) {
|
||||
exports.filterTiddlers = function(filterString,currTiddlerTitle,tiddlerList) {
|
||||
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