Fix build
oops i broke it
Ben Alpert committed
Mar 31, 2017 at 16:20 UTC
6fd539ec66adad6ec159ebf616871fa8076cdcc4
1 file changed
+2
-2
src/renderers/art/ReactARTFiber.js
+2
-2
@@ -366,13 +366,13 @@ class Text extends React.Component {
366
super(props);
367
// We allow reading these props. Ideally we could expose the Text node as
368
// ref directly.
369
- for (const key of ['height', 'width', 'x', 'y']) {
369
+ ['height', 'width', 'x', 'y'].forEach(key => {
370
Object.defineProperty(this, key, {
371
get: function() {
372
return this._text ? this._text[key] : undefined;
373
},
374
});
375
- }
375
+ });
376
}
377
render() {
378
// This means you can't have children that render into strings...