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_();
+ }
}
};
};
// For "production" code, this gets removed by uglifyjs.
+if (typeof(process) !== 'undefined') {
if (process.env.NODE_ENV != 'production') {
/**
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;
}
};
};
}
+}
export default DygraphOptions;