remove validation for StringLiteral in JSXElement children property

This commit is contained in:
Henry Zhu 2015-12-24 15:53:43 -05:00
parent aa2cc907ea
commit 2befeb0657

View File

@ -41,7 +41,7 @@ defineType("JSXElement", {
children: {
validate: chain(
assertValueType("array"),
assertEach(assertNodeType("StringLiteral", "JSXText", "JSXExpressionContainer", "JSXElement"))
assertEach(assertNodeType("JSXText", "JSXExpressionContainer", "JSXElement"))
)
}
}