From: Robert Konigsberg Date: Fri, 29 Mar 2013 22:44:07 +0000 (-0400) Subject: Closure tweak: variable 'd' declared twice within the same method. X-Git-Tag: v1.0.0~38^2~7 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=7bd1be5b6eb3ee09d7da9bb1ab7cd1b3ad5974bd;p=dygraphs.git Closure tweak: variable 'd' declared twice within the same method. --- 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