Some lint fixes.
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user