PageRenderTime 52ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/app/assets/javascripts/collections/note_collection.js

https://bitbucket.org/sqctest01/fulcrum
JavaScript | 17 lines | 14 code | 3 blank | 0 comment | 2 complexity | 27ea5c704bb7f5165380fbf8a6fe09fd MD5 | raw file
  1. if (typeof Fulcrum == 'undefined') {
  2. Fulcrum = {};
  3. }
  4. Fulcrum.NoteCollection = Backbone.Collection.extend({
  5. model: Fulcrum.Note,
  6. url: function() {
  7. return this.story.url() + '/notes';
  8. },
  9. saved: function() {
  10. return this.reject(function(note) {
  11. return note.isNew();
  12. });
  13. }
  14. });