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

Language Javascript Lines 18
MD5 Hash 27ea5c704bb7f5165380fbf8a6fe09fd
Repository https://bitbucket.org/sqctest01/fulcrum.git View Raw File View Project SPDX
| Open JSFiddle
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
if (typeof Fulcrum == 'undefined') {
  Fulcrum = {};
}

Fulcrum.NoteCollection = Backbone.Collection.extend({
  model: Fulcrum.Note,

  url: function() {
    return this.story.url() + '/notes';
  },

  saved: function() {
    return this.reject(function(note) {
      return note.isNew();
    });
  }
});
Back to Top