diff --git a/NEWS.txt b/NEWS.txt index 4b0b655..2a6fadb 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -50,6 +50,8 @@ Bug fixes (reported by Ara Anjargolian). - Fix bug with formats in the data processor (reported by Peter Hull, issue 534). +- Prevent i from being declared global in extractRange (reported by + Alexander Obukhov, issue 627). Flot 0.7 diff --git a/jquery.flot.js b/jquery.flot.js index f9f0f00..54807e4 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1483,7 +1483,7 @@ function extractRange(ranges, coord) { var axis, from, to, key, axes = allAxes(); - for (i = 0; i < axes.length; ++i) { + for (var i = 0; i < axes.length; ++i) { axis = axes[i]; if (axis.direction == coord) { key = coord + axis.n + "axis";