Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed closure compiler warning about suspicious code

  • Loading branch information...
commit d63cc75a4f178dea1ed23fef645a65e86f328590 1 parent 27d220d
@eolsson eolsson authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  js/highcharts.src.js
  2. +1 −1  js/parts/Chart.js
View
2  js/highcharts.src.js
@@ -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
2  js/parts/Chart.js
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.