Fix minor lint warnings (#6909)
Alex Jacobs committed
May 28, 2016 at 14:04 UTC
29ed7c6c8c2dd0546c453322d7549954b8bf6df0
3 files changed
+24
-5
src/renderers/dom/client/syntheticEvents/SyntheticEvent.js
+15
-3
@@ -173,9 +173,21 @@ Object.assign(SyntheticEvent.prototype, {
173
this[shouldBeReleasedProperties[i]] = null;
174
}
175
if (__DEV__) {
176
- Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
177
- Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', emptyFunction));
178
- Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', emptyFunction));
176
+ Object.defineProperty(
177
+ this,
178
+ 'nativeEvent',
179
+ getPooledWarningPropertyDefinition('nativeEvent', null)
180
+ );
181
+ Object.defineProperty(
182
+ this,
183
+ 'preventDefault',
184
+ getPooledWarningPropertyDefinition('preventDefault', emptyFunction)
185
+ );
186
+ Object.defineProperty(
187
+ this,
188
+ 'stopPropagation',
189
+ getPooledWarningPropertyDefinition('stopPropagation', emptyFunction)
190
+ );
191
}
192
},
193
src/renderers/native/ReactNativeAttributePayload.js
+3
-1
@@ -394,7 +394,9 @@ function diffProperties(
394
// default: fallthrough case when nested properties are defined
395
removedKeys = null;
396
removedKeyCount = 0;
397
- // $FlowFixMe - We think that attributeConfig is not CustomAttributeConfiguration at this point so we assume it must be AttributeConfiguration.
397
+ // $FlowFixMe - We think that attributeConfig is not
398
+ // CustomAttributeConfiguration at this point so we assume
399
+ // it must be AttributeConfiguration.
400
updatePayload = diffNestedProperty(
401
updatePayload,
402
prevProp,
src/renderers/shared/fiber/isomorphic/ReactCoroutine.js
+6
-1
@@ -42,7 +42,12 @@ export type ReactYield = {
42
continuation: mixed
43
};
44
45
-exports.createCoroutine = function<T>(children : mixed, handler : CoroutineHandler<T>, props : T, key : ?string = null) : ReactCoroutine {
45
+exports.createCoroutine = function<T>(
46
+ children : mixed,
47
+ handler : CoroutineHandler<T>,
48
+ props : T,
49
+ key : ?string = null
50
+) : ReactCoroutine {
51
var coroutine = {
52
// This tag allow us to uniquely identify this as a React Coroutine
53
$$typeof: REACT_COROUTINE_TYPE,