diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 79707f366b9..bb20c143a4d 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -507,7 +507,7 @@ notes = note.closest(".notes"); if (DiffNotesApp != null) { - ref DiffNotesApp.$refs['' + noteId + '']; + ref = DiffNotesApp.$refs['' + noteId + '']; if (ref) { ref.$destroy(true); @@ -763,7 +763,7 @@ return this.notesCountBadge.text(parseInt(this.notesCountBadge.text()) + updateCount); }; - Notes.prorotype.resolveDiscussion = function () { + Notes.prototype.resolveDiscussion = function () { var $this = $(this), discussionId = $this.attr('data-discussion-id');