From 7bd1be5b6eb3ee09d7da9bb1ab7cd1b3ad5974bd Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Fri, 29 Mar 2013 18:44:07 -0400 Subject: [PATCH] Closure tweak: variable 'd' declared twice within the same method. --- dygraph-tickers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dygraph-tickers.js b/dygraph-tickers.js index 4909909..155afb0 100644 --- a/dygraph-tickers.js +++ b/dygraph-tickers.js @@ -386,7 +386,7 @@ Dygraph.getDateAxis = function(start_time, end_time, granularity, opts, dg) { var check_dst = (spacing >= Dygraph.SHORT_SPACINGS[Dygraph.TWO_HOURLY]); for (t = start_time; t <= end_time; t += spacing) { - var d = new Date(t); + d = new Date(t); // This ensures that we stay on the same hourly "rhythm" across // daylight savings transitions. Without this, the ticks could get off -- 2.7.4