Skip to content

Commit

Permalink
Fixed issue with setExtremes hanging in certain conditions. Closes hi…
Browse files Browse the repository at this point in the history
  • Loading branch information
highslide-software committed Dec 17, 2010
1 parent 836b7a4 commit 60d2d8d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions js/highcharts.src.js
Expand Up @@ -561,16 +561,18 @@ pathAnim = {
}

// copy and append last point until the length matches the end length
endLength = end.length;
while (start.length < endLength) {

//bezier && sixify(start);
slice = [].concat(start).splice(start.length - numParams, numParams);
if (bezier) { // disable first control point
slice[numParams - 6] = slice[numParams - 2];
slice[numParams - 5] = slice[numParams - 1];
if (start.length) {
endLength = end.length;
while (start.length < endLength) {

//bezier && sixify(start);
slice = [].concat(start).splice(start.length - numParams, numParams);
if (bezier) { // disable first control point
slice[numParams - 6] = slice[numParams - 2];
slice[numParams - 5] = slice[numParams - 1];
}
start = start.concat(slice);
}
start = start.concat(slice);
}

if (startBaseLine) { // append the base lines for areas
Expand Down

0 comments on commit 60d2d8d

Please sign in to comment.