Skip to content

Instantly share code, notes, and snippets.

@yedi
Created April 7, 2012 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yedi/2332061 to your computer and use it in GitHub Desktop.
Save yedi/2332061 to your computer and use it in GitHub Desktop.
define([
'use!underscore',
'use!backbone',
'modules/models/rel'
],
function(_, Backbone, RelModel){
var RelsCollection = Backbone.Collection.extend({
// Reference to this collection's model.
model: RelModel,
/*
// Save all of the rels under the `"rels"` namespace.
localStorage: new Store("rels-backbone-require"),
*/
initialize: function() {
alert('test');
}
});
return RelsCollection;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment