mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-03 09:20:46 +00:00
parent
535b695167
commit
cc576b052e
@ -20,7 +20,12 @@ exports.each = function(source,operator,options) {
|
|||||||
values = {};
|
values = {};
|
||||||
source(function(tiddler,title) {
|
source(function(tiddler,title) {
|
||||||
if(tiddler) {
|
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)) {
|
if(!$tw.utils.hop(values,value)) {
|
||||||
values[value] = true;
|
values[value] = true;
|
||||||
results.push(title);
|
results.push(title);
|
||||||
|
Loading…
Reference in New Issue
Block a user