Closure tweak: variable 'd' declared twice within the same method.
authorRobert Konigsberg <konigsberg@google.com>
Fri, 29 Mar 2013 22:44:07 +0000 (18:44 -0400)
committerRobert Konigsberg <konigsberg@google.com>
Fri, 29 Mar 2013 22:44:07 +0000 (18:44 -0400)
dygraph-tickers.js

index 4909909..155afb0 100644 (file)
@@ -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