* option is also specified).
*/
Dygraph.prototype.isZoomed = function(axis) {
- if (axis === null) return this.zoomed_x_ || this.zoomed_y_;
+ if (axis == null) return this.zoomed_x_ || this.zoomed_y_;
if (axis === 'x') return this.zoomed_x_;
if (axis === 'y') return this.zoomed_y_;
- throw "axis parameter to Dygraph.isZoomed must be missing, 'x' or 'y'.";
+ throw "axis parameter is [" + axis + "] must be null, 'x' or 'y'.";
};
/**
this.parseFloat_(vals[1], i, line),
this.parseFloat_(vals[2], i, line) ];
} else {
- this.warning('When using customBars, values must be either blank ' +
- 'or "low;center;high" tuples (got "' + val +
- '" on line ' + (1+i));
+ this.warn('When using customBars, values must be either blank ' +
+ 'or "low;center;high" tuples (got "' + val +
+ '" on line ' + (1+i));
}
}
}