Skip to content

Commit

Permalink
Fixed empty path parsing problems in WebKit. Closes highcharts#88.
Browse files Browse the repository at this point in the history
  • Loading branch information
highslide-software committed Sep 15, 2010
1 parent 384923e commit 360deb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/highcharts.src.js
Expand Up @@ -1299,10 +1299,10 @@ SVGElement.prototype = {

// paths
if (key == 'd') {
if (typeof value != 'string') { // join path
if (value && value.join) { // join path
value = value.join(' ');
}
if (/(NaN| )/.test(value)) {
if (/(NaN| |^$)/.test(value)) {
value = 'M 0 0';
}

Expand Down

0 comments on commit 360deb6

Please sign in to comment.