Skip to content

Commit

Permalink
Try/Catch responsive resizing - Fixes 592
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Dec 29, 2014
1 parent 7e97aa3 commit f4a3cc3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Chart.Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1917,7 +1917,11 @@
// If the responsive flag is set in the chart instance config
// Cascade the resize event down to the chart.
if (instance.options.responsive){
instance.resize(instance.render, true);
try{
instance.resize(instance.render, true);
}catch(err){
console.log(err.message);
}
}
});
}, 50);
Expand Down

0 comments on commit f4a3cc3

Please sign in to comment.