mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 17:40:29 +00:00
Fixed problem with is
filter operator
This commit is contained in:
parent
6b56a95ca8
commit
191be73507
@ -106,7 +106,7 @@ exports.operators = {
|
|||||||
filter: function(operator) {
|
filter: function(operator) {
|
||||||
var op = operator.prefix === "!" ? "" : "!";
|
var op = operator.prefix === "!" ? "" : "!";
|
||||||
if(operator.operand === "shadow") {
|
if(operator.operand === "shadow") {
|
||||||
return "for(var r=subResults.length-1; r>=0; r--) {if(" + op + "this.getTiddler(subResults[r]).isShadow) {subResults.splice(r,1);}}"
|
return "for(var r=subResults.length-1; r>=0; r--) {if(" + op + "this.getTiddler(subResults[r]).isShadow) {subResults.splice(r,1);}}";
|
||||||
} else {
|
} else {
|
||||||
throw "Unknown operand for 'is' filter operator";
|
throw "Unknown operand for 'is' filter operator";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user