Fix DOM node warning

bdf2a9bb12 broke the warning that children aren't suppose to be real DOM nodes.
This commit is contained in:
Sebastian Markbage 2013-09-17 14:28:43 -07:00 committed by Paul O’Shannessy
parent 735223fc9f
commit e5ba82a44b
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ var traverseAllChildrenImpl =
} else {
if (type === 'object') {
invariant(
children || children.nodeType !== 1,
!children || children.nodeType !== 1,
'traverseAllChildren(...): Encountered an invalid child; DOM ' +
'elements are not valid children of React components.'
);