Commit 1ffbac11 authored by David Schnur's avatar David Schnur

Merge remote-tracking branch 'origin/master'

parents d0fba4a5 56274975
...@@ -58,6 +58,8 @@ Bug fixes ...@@ -58,6 +58,8 @@ Bug fixes
- Prevent i from being declared global in extractRange (reported by - Prevent i from being declared global in extractRange (reported by
Alexander Obukhov, issue 627). Alexander Obukhov, issue 627).
- Throw errors in a more cross-browser-compatible manner (patch by
Eddie Kay)
- Prevent pie slice outlines from being drawn when the stroke width is - Prevent pie slice outlines from being drawn when the stroke width is
zero (reported by Chris Minett, issue 585) zero (reported by Chris Minett, issue 585)
......
...@@ -716,7 +716,7 @@ ...@@ -716,7 +716,7 @@
canvasHeight = placeholder.height(); canvasHeight = placeholder.height();
if (canvasWidth <= 0 || canvasHeight <= 0) if (canvasWidth <= 0 || canvasHeight <= 0)
throw "Invalid dimensions for plot, width = " + canvasWidth + ", height = " + canvasHeight; throw new Error("Invalid dimensions for plot, width = " + canvasWidth + ", height = " + canvasHeight);
} }
function resizeCanvas(c) { function resizeCanvas(c) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment