1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +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) {
var op = operator.prefix === "!" ? "" : "!";
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 {
throw "Unknown operand for 'is' filter operator";
}