Commit 2ffbd4a6 authored by Eddie Kay's avatar Eddie Kay

Throw IE- and Safari-friendly error upon finding invalid dimensions.

parent 1a99246c
......@@ -713,7 +713,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