From 30f655c31ae5b97da0960a3bec9b2d82c4a5eed1 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 26 Jul 2016 11:14:37 +0100 Subject: [PATCH] Fixed JS bugs in note.js merge --- app/assets/javascripts/notes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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');