Skip to content

Instantly share code, notes, and snippets.

@krusty
Created May 23, 2013 19:03
Show Gist options
  • Save krusty/5638570 to your computer and use it in GitHub Desktop.
Save krusty/5638570 to your computer and use it in GitHub Desktop.
SubsetType.Collection = Backbone.Collection.extend({
urlRoot: '/api/subsetType',
model: SubsetType.Model,
initialize: function () {
if (!SubsetType.subsetTypes) {
SubsetType.subsetTypes = this;
} else {
this.models = SubsetTypes.subsetTypes.models;
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment