Permalink
Browse files

fix leaking globals; fixes #129

  • Loading branch information...
1 parent f7d3f63 commit 8cbb06548d8d30fea1642048123450a145b77e4c @dchester dchester committed Oct 5, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/js/Rickshaw.Graph.Axis.Time.js
  2. +1 −1 src/js/Rickshaw.js
@@ -41,7 +41,7 @@ Rickshaw.Graph.Axis.Time = function(args) {
for (var i = 0; i < count; i++) {
- tickValue = time.ceil(runningTick, unit);
+ var tickValue = time.ceil(runningTick, unit);
runningTick = tickValue + unit.seconds / 2;
offsets.push( { value: tickValue, unit: unit } );
View
@@ -7,7 +7,7 @@ var Rickshaw = {
var parent = Rickshaw;
for(var i = 1, length = parts.length; i < length; i++) {
- currentPart = parts[i];
+ var currentPart = parts[i];
parent[currentPart] = parent[currentPart] || {};
parent = parent[currentPart];
}

0 comments on commit 8cbb065

Please sign in to comment.