   Adds new note to list.
   ###
   addDiscussionNote: (xhr, note, status) =>
-    @note_ids.push(note.id)
     @renderDiscussionNote(note)
 
   ###

      success: (data) =>
        notes = data.notes
        $.each notes, (i, note) =>
          # render note if it not present in loaded list
          # or skip if rendered
          if $.inArray(note.id, @note_ids) == -1
            @note_ids.push(note.id)
            @renderNote(note)


  ###

class Notes
  @interval: null

  constructor: (notes_url, note_ids) ->
    @notes_url = notes_url
    @notes_url = gon.relative_url_root + @notes_url if gon.relative_url_root?
