Skip to content

Instantly share code, notes, and snippets.

@jrburke
Created January 14, 2013 23:41
Show Gist options
  • Save jrburke/4534612 to your computer and use it in GitHub Desktop.
Save jrburke/4534612 to your computer and use it in GitHub Desktop.
// Filename: src/js/collections/store/ArticlesCollection.js
define([
'require',
'underscore',
'backbone',
'models/store/ArticleModel'
], function (require, _, Backbone, ArticleModel) {
var ArticlesCollection = Backbone.Collection.extend({
model: function () {
var Model = require('ArticleModel');
ArticlesCollection.prototype.model = Model;
return Model.apply(this, arguments);
}
});
return ArticlesCollection;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment