Fix some lint errors.
This commit is contained in:
@@ -295,6 +295,7 @@ BabyStats.prototype.setTransitions_ = function() {
|
|||||||
* @private
|
* @private
|
||||||
* @param {Element} stylesheet
|
* @param {Element} stylesheet
|
||||||
* @param {string} selector
|
* @param {string} selector
|
||||||
|
* @return {CSSRule}
|
||||||
*/
|
*/
|
||||||
BabyStats.prototype.addStyle_ = function(stylesheet, selector) {
|
BabyStats.prototype.addStyle_ = function(stylesheet, selector) {
|
||||||
stylesheet.sheet.insertRule(selector + ' {}', 0);
|
stylesheet.sheet.insertRule(selector + ' {}', 0);
|
||||||
@@ -575,6 +576,9 @@ BabyStats.prototype.buildLayout_ = function() {
|
|||||||
}.bind(this));
|
}.bind(this));
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
|
this.displayTimelines_ = document.createElement('babyStatsDisplayTimelines');
|
||||||
|
back.appendChild(this.displayTimelines_);
|
||||||
|
|
||||||
var flip = document.createElement('img');
|
var flip = document.createElement('img');
|
||||||
this.addCSSClass_(flip, 'babyStatsFlip');
|
this.addCSSClass_(flip, 'babyStatsFlip');
|
||||||
flip.src = '/static/flip.svg';
|
flip.src = '/static/flip.svg';
|
||||||
@@ -704,7 +708,7 @@ BabyStats.prototype.buildGrid_ = function() {
|
|||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @param {number} seconds
|
* @param {number} seconds
|
||||||
* @param {?function} opt_floatToInt
|
* @param {function(number):number=} opt_floatToInt
|
||||||
* @return {string}
|
* @return {string}
|
||||||
*/
|
*/
|
||||||
BabyStats.prototype.secondsToHuman_ = function(seconds, opt_floatToInt) {
|
BabyStats.prototype.secondsToHuman_ = function(seconds, opt_floatToInt) {
|
||||||
@@ -780,9 +784,9 @@ BabyStats.prototype.updateDisplayPage_ = function() {
|
|||||||
if (tile.lastSeen) {
|
if (tile.lastSeen) {
|
||||||
var timeSince = now - tile.lastSeen;
|
var timeSince = now - tile.lastSeen;
|
||||||
this.displayEventCountCells_[tile.type]['Most recent'].textContent = (
|
this.displayEventCountCells_[tile.type]['Most recent'].textContent = (
|
||||||
timeSince < 60 ?
|
timeSince < 60 ?
|
||||||
'just now' :
|
'just now' :
|
||||||
this.secondsToHuman_(timeSince) + ' ago');
|
this.secondsToHuman_(timeSince) + ' ago');
|
||||||
} else {
|
} else {
|
||||||
this.displayEventCountCells_[tile.type]['Most recent'].textContent =
|
this.displayEventCountCells_[tile.type]['Most recent'].textContent =
|
||||||
'never';
|
'never';
|
||||||
|
|||||||
Reference in New Issue
Block a user