Permalink
Browse files

Fixed closure compiler warning about suspicious code

  • Loading branch information...
1 parent 27d220d commit d63cc75a4f178dea1ed23fef645a65e86f328590 @eolsson eolsson committed Aug 15, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 js/highcharts.src.js
  2. +1 −1 js/parts/Chart.js
View
@@ -5489,7 +5489,7 @@ function Chart(options, callback) {
// minor ticks
if (minorTickInterval && !categories) {
var pos = min + (tickPositions[0] - min) % minorTickInterval;
- for (pos; pos <= max; pos += minorTickInterval) {
+ for (; pos <= max; pos += minorTickInterval) {
if (!minorTicks[pos]) {
minorTicks[pos] = new Tick(pos, true);
}
View
@@ -1522,7 +1522,7 @@ function Chart(options, callback) {
// minor ticks
if (minorTickInterval && !categories) {
var pos = min + (tickPositions[0] - min) % minorTickInterval;
- for (pos; pos <= max; pos += minorTickInterval) {
+ for (; pos <= max; pos += minorTickInterval) {
if (!minorTicks[pos]) {
minorTicks[pos] = new Tick(pos, true);
}

0 comments on commit d63cc75

Please sign in to comment.