1
0
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:
Jeremy Ruston 2012-09-12 15:32:26 +01:00
parent 61c501e5a3
commit 7b4da4319a

View File

@ -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);
};
/*