From 7b4da4319a1b8746cf8998c4d98af09ffded70a1 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 12 Sep 2012 15:32:26 +0100 Subject: [PATCH] Allow filterTiddlers to be used on a hashmap of tiddlers --- core/modules/filters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/filters.js b/core/modules/filters.js index ee32e0dcf..3568b1d03 100644 --- a/core/modules/filters.js +++ b/core/modules/filters.js @@ -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); }; /*