X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=src%2Fdygraph.js;fp=src%2Fdygraph.js;h=735ddca0bddcd9085f8bc6ff0a1f915522d9f5f7;hb=5db9ad5da775ff73aa8d859c334935d01f01b930;hp=712145892227d0374bdeab2f8a2eaece05d11a2b;hpb=79ea4032d8200129384974c9f14ff35cd3443b3f;p=dygraphs.git diff --git a/src/dygraph.js b/src/dygraph.js index 7121458..735ddca 100644 --- a/src/dygraph.js +++ b/src/dygraph.js @@ -403,7 +403,7 @@ Dygraph.prototype.__init__ = function(div, file, attrs) { } if (!div) { - throw 'Constructing dygraph with a non-existent div!'; + throw new Error('Constructing dygraph with a non-existent div!'); } // Copy the important bits into the object