X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=src%2Fdygraph-options.js;h=7c7f745fdcc2582436e76ce5c3b0babd0ba6c274;hb=refs%2Ftags%2Fv2.0.0;hp=c77e4986f9d5713036f6780b2cd9deb0b77b4cbe;hpb=660bb307f01c14f7d7d1b839812840fb179481ec;p=dygraphs.git diff --git a/src/dygraph-options.js b/src/dygraph-options.js index c77e498..7c7f745 100644 --- a/src/dygraph-options.js +++ b/src/dygraph-options.js @@ -167,8 +167,10 @@ DygraphOptions.prototype.reparseSeries = function() { utils.update(this.xAxis_.options, axis_opts["x"] || {}); // For "production" code, this gets removed by uglifyjs. - if (process.env.NODE_ENV != 'production') { - this.validateOptions_(); + if (typeof(process) !== 'undefined') { + if (process.env.NODE_ENV != 'production') { + this.validateOptions_(); + } } }; @@ -326,6 +328,7 @@ DygraphOptions.prototype.seriesNames = function() { }; // For "production" code, this gets removed by uglifyjs. +if (typeof(process) !== 'undefined') { if (process.env.NODE_ENV != 'production') { /** @@ -395,5 +398,6 @@ DygraphOptions.resetWarnings_ = function() { }; } +} export default DygraphOptions;