Commit f83cacf5 authored by David Schnur's avatar David Schnur

Merge pull request #24 from ichthyos/master

Throw IE- and Safari-friendly error upon finding invalid dimensions.
parents c5c865d5 2ffbd4a6
......@@ -716,7 +716,7 @@
canvasHeight = placeholder.height();
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) {
......
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