1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +00:00

Fixed problem with is filter operator

This commit is contained in:
Jeremy Ruston 2012-06-06 20:51:13 +01:00
parent 6b56a95ca8
commit 191be73507

View File

@ -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";
} }