Commit 0d2c9ec7 authored by Nick Campbell's avatar Nick Campbell

insertSteps was being hoisted to global.

Locally declared insertSteps by adding var s.t. it would no longer be a
global variable.
Signed-off-by: 's avatarNick Campbell <nicholas.j.campbell@gmail.com>
parent 63266b36
...@@ -561,7 +561,7 @@ ...@@ -561,7 +561,7 @@
ps = s.datapoints.pointsize; ps = s.datapoints.pointsize;
points = s.datapoints.points; points = s.datapoints.points;
insertSteps = s.lines.show && s.lines.steps; var insertSteps = s.lines.show && s.lines.steps;
s.xaxis.used = s.yaxis.used = true; s.xaxis.used = s.yaxis.used = true;
for (j = k = 0; j < data.length; ++j, k += ps) { for (j = k = 0; j < data.length; ++j, k += ps) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment