Fix problem with 'has' operator

Fixes problem introduced in 6085936475
print-window-tiddler
Jermolene 2017-02-23 14:27:43 +00:00
rodzic 617ec82a22
commit ad1c2a6571
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -36,7 +36,7 @@ exports.has = function(source,operator,options) {
} else {
if(invert) {
source(function(tiddler,title) {
if(!tiddler || !$tw.utils.hop(tiddler.fields,operator.operand) || (tiddler.fields[operator.operand] !== "")) {
if(!tiddler || !$tw.utils.hop(tiddler.fields,operator.operand) || (tiddler.fields[operator.operand] === "")) {
results.push(title);
}
});