Skip to content

Commit

Permalink
Merge pull request #7 from tomascassidy/patch-1
Browse files Browse the repository at this point in the history
Fix undef error in USE_TITLE_FOR_FILENAME
  • Loading branch information
A---- committed Jul 8, 2015
2 parents ecd3ee3 + 6dd9fcc commit 254117f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion highcharts-export-clientside.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
* option to use the chart title for the filename when downloaded.
*/
H.exporting.USE_TITLE_FOR_FILENAME = function(options, chartOptions) {
var title = this.chart.title ? chart.title.textStr.replace(/ /g, '-').toLowerCase() : 'chart';
var title = this.title ? this.title.textStr.replace(/ /g, '-').toLowerCase() : 'chart';
return title;
};

Expand Down

0 comments on commit 254117f

Please sign in to comment.