PageRenderTime 40ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/app/public/scripts/collections/event-collection.js

https://github.com/zjr/RTI2
JavaScript | 18 lines | 11 code | 5 blank | 2 comment | 0 complexity | 9bdd3da738d9fb1d6f1366a54239bfc4 MD5 | raw file
  1. define([
  2. 'backbone',
  3. 'models/event-model'
  4. ], function(Backbone, Event) {
  5. 'use strict';
  6. var EventList = Backbone.Collection.extend({
  7. // Reference to this collection's model.
  8. model: Event,
  9. // Save all events under the `"events"` namespace.
  10. url: '/api/events'
  11. });
  12. return EventList;
  13. });