@samitouri / QOS-React-2 / commits / d585590650

Address lint issues.

Nathan Hunzaker committed Jan 3, 2017 at 20:30 UTC d58559065033f09f8eaeb1f6c85b9c374dadf00b
5 files changed +6 -17
fixtures/public/react-loader.js
+1 -12
@@ -10,15 +10,6 @@
10 var REACT_PATH = 'react.js';
11 var DOM_PATH = 'react-dom.js';
12
13 -// Patch console.log for IE9
14 -if (typeof console === 'undefined') {
15 - console = {
16 - log: function () {},
17 - warn: function () {},
18 - error: function () {},
19 - }
20 -}
21 -
13 function parseQuery(qstr) {
14 var query = {};
15
@@ -41,14 +32,12 @@ if (version !== 'local') {
32 DOM_PATH = 'https://unpkg.com/react-dom@' + version + '/dist/react-dom.min.js';
33 }
34
44 -console.log('Loading ' + version);
45 -
35 document.write('<script src="' + REACT_PATH + '"></script>');
36
37 // Versions earlier than 14 do not use ReactDOM
38 if (version === 'local' || parseFloat(version, 10) > 0.13) {
39 document.write('<script src="' + DOM_PATH + '"></script>');
40 } else {
52 - console.log('Aliasing React to ReactDOM for compatability.');
41 + // Aliasing React to ReactDOM for compatability.
42 document.write('<script>ReactDOM = React</script>');
43 }
fixtures/src/components/fixtures/index.js
+1 -1
@@ -20,7 +20,7 @@ const FixturesPage = React.createClass({
20 case '/textareas':
21 return <TextAreaFixtures />;
22 default:
23 - return <p>Please select a test fixture.</p>
23 + return <p>Please select a test fixture.</p>;
24 }
25 },
26 });
fixtures/src/components/fixtures/selects/index.js
+1 -1
@@ -5,7 +5,7 @@ const SelectFixture = React.createClass({
5 return { value: '' };
6 },
7 onChange(event) {
8 - this.setState({ value: event.target.value })
8 + this.setState({ value: event.target.value });
9 },
10 render() {
11 return (
fixtures/src/components/fixtures/text-inputs/index.js
+2 -2
@@ -13,7 +13,7 @@ const TextInputFixtures = React.createClass({
13 let onChange = e => {
14 let value = e.target.value;
15 if (type === 'number') {
16 - value = value === '' ? '' : parseFloat(value, 10) || 0
16 + value = value === '' ? '' : parseFloat(value, 10) || 0;
17 }
18 this.setState({
19 [type] : value,
@@ -46,7 +46,7 @@ const TextInputFixtures = React.createClass({
46 let types = [
47 'text', 'email', 'number', 'url', 'tel',
48 'color', 'date', 'datetime-local',
49 - 'time', 'month', 'week', 'range', 'password'
49 + 'time', 'month', 'week', 'range', 'password',
50 ];
51 return (
52 <form onSubmit={event => event.preventDefault()}>
fixtures/src/components/fixtures/textareas/index.js
+1 -1
@@ -24,7 +24,7 @@ const TextAreaFixtures = React.createClass({
24
25 <div className="container">
26 <h4>Controlled Output:</h4>
27 - <div className='output'>
27 + <div className="output">
28 {this.state.value}
29 </div>
30 </div>