From 660bb307f01c14f7d7d1b839812840fb179481ec Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Sat, 1 Oct 2016 15:55:24 -0400 Subject: [PATCH] Make old-style per-series options throw (#783) --- src/dygraph-options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }; -- 2.7.4