Skip to content

Commit

Permalink
var naming consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
scniro committed Nov 3, 2017
1 parent 0c7dce8 commit 18fb180
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {UnControlled as CodeMirror} from 'react-codemirror2'
theme: 'material',
lineNumbers: true
}}
onChange={(editor, metadata, value) => {
onChange={(editor, data, value) => {
}}
/>
```
Expand All @@ -40,7 +40,7 @@ import {Controlled as CodeMirror} from 'react-codemirror2'
onBeforeChange={(editor, data, value) => {
this.setState({value});
}}
onChange={(editor, metadata, value) => {
onChange={(editor, data, value) => {
}}
/>
```
Expand Down Expand Up @@ -154,4 +154,4 @@ require('codemirror/mode/javascript/javascript');
- `onUpdate(editor, event)` - *[update](https://codemirror.net/doc/manual.html#event_update)*
- `onViewportChange(editor, from, to)` - *[viewportChange](https://codemirror.net/doc/manual.html#event_viewportChange)*

[MIT](./LICENSE) © 2017 [scniro](https://github.com/scniro)
[MIT](./LICENSE) © 2017 [scniro](https://github.com/scniro)

0 comments on commit 18fb180

Please sign in to comment.