/app/assets/javascripts/collections/note_collection.js
JavaScript | 17 lines | 14 code | 3 blank | 0 comment | 2 complexity | 27ea5c704bb7f5165380fbf8a6fe09fd MD5 | raw file
- 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();
- });
- }
- });