Sorry, just noticed that it's a Backbone bug, so this issue is not relevant to Marionette.
Description
If I create new collection class, that extends Backbone.Collection, and define it's "model" property as a function which returns instantiated model - then on collection constructed error "Cannot read property 'idAttribute' of undefined" is thrown. That's because class methods has no property "prototype", which is used in Backbone.Collection.prototype.modelId method.
Check that prototype exists in model constructor
Expected behavior
No error thrown if collection has property "model" defined as class method.
Sorry, just noticed that it's a Backbone bug, so this issue is not relevant to Marionette.
Description
Expected behavior
No error thrown if collection has property "model" defined as class method.
Actual behavior
Error "Cannot read property 'idAttribute' of undefined" thrown. Here is an example: https://jsfiddle.net/e1ybjmw3/
Environment