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

Fix "each" filter operator with missing tiddlers

Fixes #930
This commit is contained in:
Jermolene 2014-10-05 16:25:01 +01:00
parent 535b695167
commit cc576b052e

View File

@ -20,7 +20,12 @@ exports.each = function(source,operator,options) {
values = {};
source(function(tiddler,title) {
if(tiddler) {
var value = tiddler.getFieldString(operator.operand);
var value;
if((operator.operand === "") || (operator.operand === "title")) {
value = title;
} else {
value = tiddler.getFieldString(operator.operand);
}
if(!$tw.utils.hop(values,value)) {
values[value] = true;
results.push(title);