From c0430a23fa1a263cf3ee2d436da235fd5829d0a3 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Sat, 26 Oct 2013 18:56:54 -0500 Subject: [PATCH] lint cleanup --- dygraph-exports.js | 2 ++ plugins/range-selector.js | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dygraph-exports.js b/dygraph-exports.js index 8cee86d..e49aa48 100644 --- a/dygraph-exports.js +++ b/dygraph-exports.js @@ -2,6 +2,8 @@ // clients. Exporting a symbols forces the Closure Compiler to preserve it in // the minified JS (symbols not in this list are mangled). +/*global Dygraph:false, goog:false */ + goog.exportSymbol('Dygraph', Dygraph); goog.exportSymbol('Dygraph.prototype.adjustRoll', Dygraph.prototype.adjustRoll); diff --git a/plugins/range-selector.js b/plugins/range-selector.js index d226eba..c9a635c 100644 --- a/plugins/range-selector.js +++ b/plugins/range-selector.js @@ -649,7 +649,6 @@ rangeSelector.prototype.computeCombinedSeriesAndLimits_ = function() { // Create a combined series (average of all series values). var i, j; - var xVal, yVal; // TODO(danvk): short-circuit if there's only one series. var rolledSeries = []; @@ -681,7 +680,7 @@ rangeSelector.prototype.computeCombinedSeriesAndLimits_ = function() { var yMin = Number.MAX_VALUE; var yMax = -Number.MAX_VALUE; for (i = 0; i < combinedSeries.length; i++) { - yVal = combinedSeries[i][1]; + var yVal = combinedSeries[i][1]; if (yVal !== null && isFinite(yVal) && (!logscale || yVal > 0)) { yMin = Math.min(yMin, yVal); yMax = Math.max(yMax, yVal); -- 2.7.4