1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Merge pull request #1496 from tobibeer/just-fix-list-filter-no-refactoring

just fixes list filter, no further refactoring
This commit is contained in:
Jeremy Ruston 2015-02-16 17:30:54 +00:00
commit e1a825f6b9

View File

@ -2,9 +2,7 @@
title: $:/core/modules/filters/list.js
type: application/javascript
module-type: filteroperator
Filter operator returning the tiddlers whose title is listed in the operand tiddler
\*/
(function(){
@ -27,7 +25,11 @@ exports.list = function(source,operator,options) {
}
});
} else {
results = list;
source(function(tiddler,title) {
if(list.indexOf(title) > -1) {
results.push(title);
}
});
}
return results;
};