Switch to using comma-dangle: always-multiline
Chris Ha committed
Jul 16, 2015 at 23:40 UTC
c085c850454945bfa1b09e62b5d19d93631d4fb8
1 file changed
+8
-8
docs/_js/live_editor.js
+8
-8
@@ -11,11 +11,11 @@ var IS_MOBILE = (
11
var CodeMirrorEditor = React.createClass({
12
propTypes: {
13
lineNumbers: React.PropTypes.bool,
14
- onChange: React.PropTypes.func
14
+ onChange: React.PropTypes.func,
15
},
16
getDefaultProps: function() {
17
return {
18
- lineNumbers: false
18
+ lineNumbers: false,
19
};
20
},
21
componentDidMount: function() {
@@ -28,7 +28,7 @@ var CodeMirrorEditor = React.createClass({
28
smartIndent: false, // javascript mode does bad things with jsx indents
29
matchBrackets: true,
30
theme: 'solarized-light',
31
- readOnly: this.props.readOnly
31
+ readOnly: this.props.readOnly,
32
});
33
this.editor.on('change', this.handleChange);
34
},
@@ -60,7 +60,7 @@ var CodeMirrorEditor = React.createClass({
60
{editor}
61
</div>
62
);
63
- }
63
+ },
64
});
65
66
var selfCleaningTimeout = {
@@ -71,7 +71,7 @@ var selfCleaningTimeout = {
71
setTimeout: function() {
72
clearTimeout(this.timeoutID);
73
this.timeoutID = setTimeout.apply(null, arguments);
74
- }
74
+ },
75
};
76
77
var ReactPlayground = React.createClass({
@@ -85,7 +85,7 @@ var ReactPlayground = React.createClass({
85
renderCode: React.PropTypes.bool,
86
showCompiledJSTab: React.PropTypes.bool,
87
showLineNumbers: React.PropTypes.bool,
88
- editorTabTitle: React.PropTypes.string
88
+ editorTabTitle: React.PropTypes.string,
89
},
90
91
getDefaultProps: function() {
@@ -95,7 +95,7 @@ var ReactPlayground = React.createClass({
95
},
96
editorTabTitle: 'Live JSX Editor',
97
showCompiledJSTab: true,
98
- showLineNumbers: false
98
+ showLineNumbers: false,
99
};
100
},
101
@@ -218,5 +218,5 @@ var ReactPlayground = React.createClass({
218
);
219
}, 500);
220
}
221
- }
221
+ },
222
});