backbone-parse-es6/src/issue3/MyCollection.js
'use strict';
import Backbone from 'backbone';
import MyModel from 'MyModel.js';
/**
* Provides a basic `Backbone.Collection` using MyModel
*/
class MyCollection extends Backbone.Collection
{
/**
* Reference to this collection's model.
*
* @returns {MyModel}
*/
get model() { return MyModel; }
}
/**
* Exports an instance of MyCollection.
*/
export default new MyCollection();