var OPTIONS_REFERENCE = null;
// For "production" code, this gets removed by uglifyjs.
+if (typeof(process) !== 'undefined') {
if (process.env.NODE_ENV != 'production') {
// NOTE: in addition to parsing as JS, this snippet is expected to be valid
}
}
+}
export default OPTIONS_REFERENCE;
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') {
/**
};
}
+}
export default DygraphOptions;
*/
Dygraph.prototype.attr_ = function(name, seriesName) {
// For "production" code, this gets removed by uglifyjs.
- if (process.env.NODE_ENV != 'production') {
- if (typeof(OPTIONS_REFERENCE) === 'undefined') {
- console.error('Must include options reference JS for testing');
- } else if (!OPTIONS_REFERENCE.hasOwnProperty(name)) {
- console.error('Dygraphs is using property ' + name + ', which has no ' +
- 'entry in the Dygraphs.OPTIONS_REFERENCE listing.');
- // Only log this error once.
- OPTIONS_REFERENCE[name] = true;
+ if (typeof(process) !== 'undefined') {
+ if (process.env.NODE_ENV != 'production') {
+ if (typeof(OPTIONS_REFERENCE) === 'undefined') {
+ console.error('Must include options reference JS for testing');
+ } else if (!OPTIONS_REFERENCE.hasOwnProperty(name)) {
+ console.error('Dygraphs is using property ' + name + ', which has no ' +
+ 'entry in the Dygraphs.OPTIONS_REFERENCE listing.');
+ // Only log this error once.
+ OPTIONS_REFERENCE[name] = true;
+ }
}
}
return seriesName ? this.attributes_.getForSeries(name, seriesName) : this.attributes_.get(name);