Permalink
Browse files

lint cleanup

  • Loading branch information...
1 parent db6a9f5 commit c0430a23fa1a263cf3ee2d436da235fd5829d0a3 @danvk committed Oct 26, 2013
Showing with 3 additions and 2 deletions.
  1. +2 −0 dygraph-exports.js
  2. +1 −2 plugins/range-selector.js
View
@@ -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);
@@ -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);

0 comments on commit c0430a2

Please sign in to comment.