Some lint fixes.

This commit is contained in:
Ian Gulliver
2015-12-30 11:42:40 -08:00
parent 370f5d363b
commit 6b2be9f260

View File

@@ -122,7 +122,6 @@ BabyStats.prototype.onLogout_ = function(e) {
}; };
/** /**
* @private * @private
*/ */
@@ -142,6 +141,7 @@ BabyStats.prototype.onMessage_ = function(e) {
/** /**
* @param {string} type * @param {string} type
* @return {Object}
* @private * @private
*/ */
BabyStats.prototype.findTile_ = function(type) { BabyStats.prototype.findTile_ = function(type) {
@@ -224,7 +224,7 @@ BabyStats.prototype.removeCSSClass_ = function(node, className) {
} }
delete classes[i]; delete classes[i];
node.className = classes.join(' '); node.className = classes.join(' ');
} };
/** /**
@@ -590,6 +590,9 @@ BabyStats.prototype.buildLayout_ = function() {
}; };
/**
* @private
*/
BabyStats.prototype.requestAccess_ = function() { BabyStats.prototype.requestAccess_ = function() {
this.chat_.requestAccess(this.yourName_.value); this.chat_.requestAccess(this.yourName_.value);
}; };
@@ -705,7 +708,7 @@ BabyStats.prototype.buildGrid_ = function() {
/** /**
* @private * @private
* @param {number} seconds * @param {number} seconds
* @return {number} * @return {string}
*/ */
BabyStats.prototype.secondsToHuman_ = function(seconds) { BabyStats.prototype.secondsToHuman_ = function(seconds) {
if (seconds > 60 * 60 * 24) { if (seconds > 60 * 60 * 24) {
@@ -727,7 +730,9 @@ BabyStats.prototype.updateTileStatus_ = function() {
if (tile.lastSeen) { if (tile.lastSeen) {
var timeSince = now - tile.lastSeen; var timeSince = now - tile.lastSeen;
tile.statusBox.textContent = ( 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); var timedOut = tile.timeout && (now - tile.timeout > tile.lastSeen);
if (tile.canceled || timedOut) { if (tile.canceled || timedOut) {
this.removeCSSClass_(tile.statusBox, 'babyStatsCellStatusActive'); this.removeCSSClass_(tile.statusBox, 'babyStatsCellStatusActive');