Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary traverseContext
  • Loading branch information
koba04 committed Jun 29, 2017
commit 4ceb58fb23f32bbf1e3f850a6608c2690688f9f8
14 changes: 1 addition & 13 deletions src/isomorphic/children/ReactChildren.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,19 +276,7 @@ function countChildren(children: mixed): number {
if (children == null) {
return 0;
}
var traverseContext = {
result: [],
keyPrefix: '',
func: emptyFunction.thatReturns,
context: {},
count: 0,
};
return traverseAllChildren(
children,
'',
emptyFunction.thatReturns,
traverseContext,
);
return traverseAllChildren(children, '', emptyFunction.thatReturnsNull, null);
}

var ReactChildren = {
Expand Down