From 03fc45360895eb700fa8c32e3681150a9681143d Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Fri, 13 Oct 2017 14:05:10 +0900 Subject: [PATCH] Change method names --- browser/main/NoteList/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js index f533b6ba..54e0d87a 100644 --- a/browser/main/NoteList/index.js +++ b/browser/main/NoteList/index.js @@ -375,17 +375,17 @@ class NoteList extends React.Component { if (!location.pathname.match(/\/home|\/starred|\/trash/)) { menu.append(new MenuItem({ label: label, - click: (e) => this.handlePinToTop(e, uniqueKey) + click: (e) => this.pinToTop(e, uniqueKey) })) } menu.append(new MenuItem({ label: 'Delete Note', - click: (e) => this.handleDeleteNote(e, uniqueKey) + click: (e) => this.deleteNote(e, uniqueKey) })) menu.popup() } - handlePinToTop (e, uniqueKey) { + pinToTop (e, uniqueKey) { const { data, location } = this.props let splitted = location.pathname.split('/') const storageKey = splitted[2] @@ -426,7 +426,7 @@ class NoteList extends React.Component { }) } - handleDeleteNote (e, uniqueKey) { + deleteNote (e, uniqueKey) { this.handleNoteClick(e, uniqueKey) ee.emit('detail:delete') }