PageRenderTime 68ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/templates/collection.js

https://github.com/Takashi527/generator-backbone
JavaScript | 14 lines | 7 code | 6 blank | 1 comment | 1 complexity | 46089a37652a4f7e9272e4ca66cf54ef MD5 | raw file
  1. /*global <%= _.camelize(appname) %>, Backbone*/
  2. <%= _.camelize(appname) %>.Collections = <%= _.camelize(appname) %>.Collections || {};
  3. (function () {
  4. 'use strict';
  5. <%= _.camelize(appname) %>.Collections.<%= _.classify(name) %> = Backbone.Collection.extend({
  6. model: <%= _.camelize(appname) %>.Models.<%= _.classify(name) %>
  7. });
  8. })();