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

pull/1/head
Eddie Kay 15 years ago
parent 1a99246c73
commit 2ffbd4a6df

@ -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) {

Loading…
Cancel
Save