Allow filterTiddlers to be used on a hashmap of tiddlers

print-window-tiddler
Jeremy Ruston 2012-09-12 15:32:26 +01:00
rodzic 61c501e5a3
commit 7b4da4319a
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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