Open SylvainCorlay opened 5 years ago
This is one of the issues with ES6 classes. See https://github.com/jashkenas/backbone/issues/3560 for discussion.
@blikblum I have gone through this discussion earlier. I am not sure the specific issue that I am describing is covered in the discussion..
@SylvainCorlay does my PR fix your issue? Static propery inheritance on the constructors?
If a backbone model is an ES6 class with a statc property, and one use
Model.extend
to make a subclass (instead of the ES6extends
), the static properties of the base model are not added to the subclass.