1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

remove unnecessary arg

This commit is contained in:
Sosuke Suzuki
2017-12-18 21:38:58 +09:00
parent 89b2f48a06
commit 0e0e779cbe

View File

@@ -21,7 +21,7 @@ class MarkdownSplitEditor extends React.Component {
this.setState({ value: props.value })
}
handleOnChange (e) {
handleOnChange () {
const value = this.refs.code.value
this.setState({ value }, () => {
this.value = value
@@ -71,7 +71,7 @@ class MarkdownSplitEditor extends React.Component {
indentType={config.editor.indentType}
scrollPastEnd={config.editor.scrollPastEnd}
storageKey={storageKey}
onChange={e => this.handleOnChange(e)}
onChange={this.handleOnChange.bind(this)}
/>
<MarkdownPreview
style={previewStyle}