Fix an issue where models automatically created for fetched collections didn't have appropriate mixin methods, like .getCategories, applied. Resolved by defining the model property of collections as a function returning an new instantiated model, instead of a static model prototype.
Fix an issue where models automatically created for fetched collections didn't have appropriate mixin methods, like
.getCategories
, applied. Resolved by defining the model property of collections as a function returning an new instantiated model, instead of a static model prototype.Props jesseenterprises.
See https://core.trac.wordpress.org/ticket/39070