From 71791e567aaa071480e6cf51a5e3cf2e79fa39f9 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Thu, 7 Jan 2016 21:10:32 -0800 Subject: [PATCH] Lint errors. --- static/babystats.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/static/babystats.js b/static/babystats.js index d186ef9..3d331aa 100644 --- a/static/babystats.js +++ b/static/babystats.js @@ -1085,10 +1085,10 @@ BabyStats.prototype.updateDisplayIncremental_ = function(message) { if (this.lastSleepMessage_) { var timeOnly = function(date) { return new Date( - 0, 0, 0, - date.getHours(), - date.getMinutes(), - date.getSeconds() + 0, 0, 0, + date.getHours(), + date.getMinutes(), + date.getSeconds() ); }.bind(this); @@ -1119,17 +1119,17 @@ BabyStats.prototype.updateDisplayIncremental_ = function(message) { } else { // Crosses a day boundary. var end = new Date( - lastDate.getFullYear(), - lastDate.getMonth(), - lastDate.getDate(), - 23, 59, 59); + lastDate.getFullYear(), + lastDate.getMonth(), + lastDate.getDate(), + 23, 59, 59); insertBlock(lastDate, end, this.lastSleepMessage_.message.type); var start = new Date( - date.getFullYear(), - date.getMonth(), - date.getDate(), - 0, 0, 0); + date.getFullYear(), + date.getMonth(), + date.getDate(), + 0, 0, 0); insertBlock(start, date, this.lastSleepMessage_.message.type); }