}
const adapter = scale._adapter;
- const options = scale.options.time;
- const {parser, round, isoWeekday} = options;
+ const {parser, round, isoWeekday} = scale._parseOpts;
let value = input;
if (typeof parser === 'function') {
this._majorUnit = undefined;
this._offsets = {};
this._normalized = false;
+ this._parseOpts = undefined;
}
init(scaleOpts, opts) {
// missing formats on update
mergeIf(time.displayFormats, adapter.formats());
+ this._parseOpts = {
+ parser: time.parser,
+ round: time.round,
+ isoWeekday: time.isoWeekday
+ };
+
super.init(scaleOpts);
this._normalized = opts.normalized;