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

using variable declaration for readability

This commit is contained in:
Tobias Beer 2015-01-26 18:58:08 +01:00
parent baca2703f1
commit f9464dfaf8

View File

@ -22,12 +22,12 @@ exports.each = function(source,operator,options) {
list = "list" === operator.suffix;
source(function(tiddler,title) {
if(tiddler) {
var value,
field = operator.operand || "title";
var field = operator.operand || "title",
value = list ?
options.wiki.getTiddlerList(title,field) :
[ "title" === field ? title : tiddler.getFieldString(operator.operand)];
$tw.utils.each(
list ?
options.wiki.getTiddlerList(title,field) :
[ "title" === field ? title : tiddler.getFieldString(operator.operand)],
value,
function(value){
if(!$tw.utils.hop(values,value)) {
values[value] = true;