Fix lint errors including use of `global`
Ben Alpert committed
Sep 25, 2013 at 14:48 UTC
94d2bbb2214f3d88ac6cc1b1c48a59b377222727
2 files changed
+5
-5
src/core/ReactDOMSelection.js
+2
-2
@@ -57,7 +57,7 @@ function getIESelection(node) {
57
* @param {DOMElement} node
58
*/
59
function getModernSelection(node) {
60
- var selection = global.getSelection();
60
+ var selection = window.getSelection();
61
var anchorNode = selection.anchorNode;
62
var anchorOffset = selection.anchorOffset;
63
var focusNode = selection.focusNode;
@@ -125,7 +125,7 @@ function setIESelection(node, offsets) {
125
* @param {object} offsets
126
*/
127
function setModernSelection(node, offsets) {
128
- var selection = global.getSelection();
128
+ var selection = window.getSelection();
129
130
var length = node[getTextContentAccessor()].length;
131
var start = Math.min(offsets.start, length);
src/dom/components/ReactDOMInput.js
+3
-3
@@ -74,9 +74,9 @@ var ReactDOMInput = ReactCompositeComponent.createClass({
74
this.props.checked != null ? this.props.checked : this.state.checked;
75
76
var value = this.getValue();
77
- props.value = value != null && value !== false
78
- ? '' + value
79
- : this.state.value;
77
+ props.value = value != null && value !== false ?
78
+ '' + value :
79
+ this.state.value;
80
81
props.onChange = this._handleChange;
82