From: Dan Vanderkam Date: Sat, 26 Oct 2013 23:56:54 +0000 (-0500) Subject: lint cleanup X-Git-Tag: v1.1.0~72 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=c0430a23fa1a263cf3ee2d436da235fd5829d0a3;p=dygraphs.git lint cleanup --- 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);