diff --git a/jquery.flot.js b/jquery.flot.js index 0db9fe1..da3e6ff 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -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) {