1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-06-03 13:13:13 +00:00

address review comments - add production/dev main.html & remove comments

This commit is contained in:
AWolf81
2019-05-08 08:46:34 +02:00
committed by Junyoung Choi
parent f7a648903e
commit 333b0584a4
8 changed files with 163 additions and 18 deletions
+2 -7
View File
@@ -22,19 +22,14 @@ class NewNoteButton extends React.Component {
}
this.handleNewNoteButtonClick = this.handleNewNoteButtonClick.bind(this)
// why is there a newNoteHandler?!
this.newNoteHandler = () => {
this.handleNewNoteButtonClick()
}
}
componentDidMount () {
eventEmitter.on('top:new-note', this.newNoteHandler)
eventEmitter.on('top:new-note', this.handleNewNoteButtonClick)
}
componentWillUnmount () {
eventEmitter.off('top:new-note', this.newNoteHandler)
eventEmitter.off('top:new-note', this.handleNewNoteButtonClick)
}
handleNewNoteButtonClick (e) {