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

renamed value to items

This commit is contained in:
Tobias Beer 2015-01-26 19:00:49 +01:00
parent f9464dfaf8
commit c3cbbc3f66

View File

@ -23,18 +23,15 @@ exports.each = function(source,operator,options) {
source(function(tiddler,title) {
if(tiddler) {
var field = operator.operand || "title",
value = list ?
items = list ?
options.wiki.getTiddlerList(title,field) :
[ "title" === field ? title : tiddler.getFieldString(operator.operand)];
$tw.utils.each(
value,
function(value){
if(!$tw.utils.hop(values,value)) {
values[value] = true;
results.push(list ? value : title);
}
$tw.utils.each(items,function(value){
if(!$tw.utils.hop(values,value)) {
values[value] = true;
results.push(list ? value : title);
}
)
});
}
});
return results;