1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Minor coding style tweaks

This commit is contained in:
Jermolene 2015-07-05 18:09:35 +01:00
parent 31fc9babfe
commit a86cfe2663

View File

@ -18,8 +18,8 @@ Export our filter function
exports.recent = function(source,operator,options) {
var results = [],
fieldName = operator.suffix || "modified",
targetTimeStamp = (new Date()).setHours(0,0,0,0) - 1000*60*60*24*(parseInt(operator.operand,10)||0);
var isRecent = function(dateField) {
targetTimeStamp = (new Date()).setHours(0,0,0,0) - 1000*60*60*24*(parseInt(operator.operand,10) || 0),
isRecent = function(dateField) {
return targetTimeStamp <= (new Date(dateField)).setHours(0,0,0,0);
};
source(function(tiddler,title) {