mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix some linty things
This commit is contained in:
@@ -63,9 +63,9 @@ function ReactLink(value, requestChange) {
|
||||
*/
|
||||
function createLinkTypeChecker(linkType) {
|
||||
var shapes = {
|
||||
value: typeof linkType === 'undefined'
|
||||
? React.PropTypes.any.isRequired
|
||||
: linkType.isRequired,
|
||||
value: typeof linkType === 'undefined' ?
|
||||
React.PropTypes.any.isRequired :
|
||||
linkType.isRequired,
|
||||
requestChange: React.PropTypes.func.isRequired
|
||||
};
|
||||
return React.PropTypes.shape(shapes);
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
|
||||
var EventPluginRegistry = require('EventPluginRegistry');
|
||||
var EventPluginUtils = require('EventPluginUtils');
|
||||
var ExecutionEnvironment = require('ExecutionEnvironment');
|
||||
|
||||
var accumulate = require('accumulate');
|
||||
var forEachAccumulated = require('forEachAccumulated');
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
* @nolint
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
var ReactTestUtils = require('ReactTestUtils');
|
||||
|
||||
var mergeInto = require('mergeInto');
|
||||
@@ -73,7 +75,7 @@ mergeInto(reactComponentExpect.prototype, {
|
||||
// change soon.
|
||||
this.toBeDOMComponent();
|
||||
var renderedChildren = this.instance()._renderedChildren || {};
|
||||
for (name in renderedChildren) {
|
||||
for (var name in renderedChildren) {
|
||||
if (!renderedChildren.hasOwnProperty(name)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user