From: Dan Vanderkam Date: Sat, 1 Oct 2016 19:49:12 +0000 (-0400) Subject: Make old-style per-series options throw X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=refs%2Fheads%2Fold-style-throws;p=dygraphs.git Make old-style per-series options throw --- diff --git a/src/dygraph-options.js b/src/dygraph-options.js index d7ec5fb..c77e498 100644 --- a/src/dygraph-options.js +++ b/src/dygraph-options.js @@ -384,8 +384,8 @@ DygraphOptions.prototype.warnInvalidOption_ = function(optionName) { console.warn('Use new-style per-series options (saw ' + optionName + ' as top-level options key). See http://bit.ly/1tceaJs'); } else { console.warn('Unknown option ' + optionName + ' (full list of options at dygraphs.com/options.html'); - throw "invalid option " + optionName; } + throw "invalid option " + optionName; } };