From 6b2be9f260ddef74f7c452e23c350da2b596c373 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 30 Dec 2015 11:42:40 -0800 Subject: [PATCH] Some lint fixes. --- static/babystats.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/static/babystats.js b/static/babystats.js index 19ef255..52af052 100644 --- a/static/babystats.js +++ b/static/babystats.js @@ -122,7 +122,6 @@ BabyStats.prototype.onLogout_ = function(e) { }; - /** * @private */ @@ -142,6 +141,7 @@ BabyStats.prototype.onMessage_ = function(e) { /** * @param {string} type + * @return {Object} * @private */ BabyStats.prototype.findTile_ = function(type) { @@ -224,7 +224,7 @@ BabyStats.prototype.removeCSSClass_ = function(node, className) { } delete classes[i]; node.className = classes.join(' '); -} +}; /** @@ -590,6 +590,9 @@ BabyStats.prototype.buildLayout_ = function() { }; +/** + * @private + */ BabyStats.prototype.requestAccess_ = function() { this.chat_.requestAccess(this.yourName_.value); }; @@ -705,7 +708,7 @@ BabyStats.prototype.buildGrid_ = function() { /** * @private * @param {number} seconds - * @return {number} + * @return {string} */ BabyStats.prototype.secondsToHuman_ = function(seconds) { if (seconds > 60 * 60 * 24) { @@ -727,7 +730,9 @@ BabyStats.prototype.updateTileStatus_ = function() { if (tile.lastSeen) { var timeSince = now - tile.lastSeen; tile.statusBox.textContent = ( - timeSince < 60 ? 'just now' : this.secondsToHuman_(timeSince) + ' ago'); + timeSince < 60 ? + 'just now' : + this.secondsToHuman_(timeSince) + ' ago'); var timedOut = tile.timeout && (now - tile.timeout > tile.lastSeen); if (tile.canceled || timedOut) { this.removeCSSClass_(tile.statusBox, 'babyStatsCellStatusActive');