PageRenderTime 58ms CodeModel.GetById 11ms RepoModel.GetById 2ms app.codeStats 0ms

/cfzwww/static/javascript/app/company/companies_collections.js

https://bitbucket.org/uris77/cfz-www
JavaScript | 16 lines | 15 code | 1 blank | 0 comment | 0 complexity | 80ff16585232d5847f5f151628e372a0 MD5 | raw file
  1. define([
  2. 'jquery',
  3. 'lodash',
  4. 'backbone',
  5. 'app/company/company-model',
  6. ], function($, _, backbone, companyModel){
  7. var companiesCollection = Backbone.Collection.extend({
  8. model: companyModel,
  9. url: '/company/list',
  10. initialize: function(){
  11. console.log("initialized company collections");
  12. }
  13. });
  14. return new companiesCollection;
  15. });