From: Lucas Bergman Date: Wed, 6 Mar 2013 21:24:05 +0000 (-0600) Subject: dygraph-tickers.js: Fix variable redeclaration X-Git-Tag: v1.0.0~40^2~3 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=c180fde537a6c17ef6cf68cd7d9334e89a794450;p=dygraphs.git dygraph-tickers.js: Fix variable redeclaration --- 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