facing problem while using Object.assign
/* called from some where */
this.calendar = new myapp.views.Calendar(options);
export class Calendar {
constructor(options) {
Object.assign(this, options);
this.get_default_options();
}
...
}
myapp.view.calendar = Calendar;
Error: Cannot set property field_map of # which has only a getter