(notes)
| 670 | } |
| 671 | |
| 672 | function Notes(notes) { |
| 673 | this._notes = _.indexBy(notes, function(note) { |
| 674 | return noteKey(note.noteType, note.noteId); |
| 675 | }); |
| 676 | } |
| 677 | |
| 678 | Notes.prototype.resolve = function(reference) { |
| 679 | return this.findNoteByKey(noteKey(reference.noteType, reference.noteId)); |