Skip to content

Commit

Permalink
[fixed] Fix CodeMirrorEditor binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Jia committed May 20, 2015
1 parent 1b58489 commit 2a35eab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/src/ReactPlayground.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ const IS_MOBILE = typeof navigator !== 'undefined' && (
);

class CodeMirrorEditor extends React.Component {
constructor(props) {
super(props);

this.handleChange = this.handleChange.bind(this);
}

componentDidMount() {
if (IS_MOBILE || CodeMirror === undefined) {
return;
Expand Down

0 comments on commit 2a35eab

Please sign in to comment.