From 8a12eb4281796af2b2c5136ff7bedf9135ff841a Mon Sep 17 00:00:00 2001 From: Joshua Comeau Date: Sat, 14 Oct 2017 11:45:23 -0400 Subject: [PATCH] Style nits for #194 --- src/FlipMove.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/FlipMove.js b/src/FlipMove.js index fc870c8..7374bff 100644 --- a/src/FlipMove.js +++ b/src/FlipMove.js @@ -61,7 +61,11 @@ class FlipMove extends Component { // of truth. state = { children: getElementChildren( - this.props? this.props.children: [], + // `this.props` ought to always be defined at this point, but a report + // was made about it not being defined in IE10. + // TODO: Test in IE10, to see if there's an underlying cause that can + // be addressed. + this.props ? this.props.children : [], ).map((element: Element<*>) => ({ ...element, element,