/templates/requirejs/collection.js
JavaScript | 15 lines | 11 code | 3 blank | 1 comment | 0 complexity | 6307507be42d905646a4111472615f6a MD5 | raw file
- /*global define*/
- define([
- 'underscore',
- 'backbone',
- 'models/<%= name %>'
- ], function (_, Backbone, <%= _.classify(name) %>Model) {
- 'use strict';
- var <%= _.classify(name) %>Collection = Backbone.Collection.extend({
- model: <%= _.classify(name) %>Model
- });
- return <%= _.classify(name) %>Collection;
- });