mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-25 23:03:15 +00:00
using variable declaration for readability
This commit is contained in:
parent
baca2703f1
commit
f9464dfaf8
|
@ -22,12 +22,12 @@ exports.each = function(source,operator,options) {
|
||||||
list = "list" === operator.suffix;
|
list = "list" === operator.suffix;
|
||||||
source(function(tiddler,title) {
|
source(function(tiddler,title) {
|
||||||
if(tiddler) {
|
if(tiddler) {
|
||||||
var value,
|
var field = operator.operand || "title",
|
||||||
field = operator.operand || "title";
|
value = list ?
|
||||||
|
options.wiki.getTiddlerList(title,field) :
|
||||||
|
[ "title" === field ? title : tiddler.getFieldString(operator.operand)];
|
||||||
$tw.utils.each(
|
$tw.utils.each(
|
||||||
list ?
|
value,
|
||||||
options.wiki.getTiddlerList(title,field) :
|
|
||||||
[ "title" === field ? title : tiddler.getFieldString(operator.operand)],
|
|
||||||
function(value){
|
function(value){
|
||||||
if(!$tw.utils.hop(values,value)) {
|
if(!$tw.utils.hop(values,value)) {
|
||||||
values[value] = true;
|
values[value] = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user