From: Dan Vanderkam Date: Sat, 1 Oct 2016 19:55:24 +0000 (-0400) Subject: Make old-style per-series options throw (#783) X-Git-Tag: v2.0.0~16 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=660bb307f01c14f7d7d1b839812840fb179481ec;p=dygraphs.git Make old-style per-series options throw (#783) --- 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; } };