Fix build

oops i broke it
This commit is contained in:
Ben Alpert
2017-03-31 16:20:28 +01:00
parent e9c995974d
commit 6fd539ec66
+2 -2
View File
@@ -366,13 +366,13 @@ class Text extends React.Component {
super(props);
// We allow reading these props. Ideally we could expose the Text node as
// ref directly.
for (const key of ['height', 'width', 'x', 'y']) {
['height', 'width', 'x', 'y'].forEach(key => {
Object.defineProperty(this, key, {
get: function() {
return this._text ? this._text[key] : undefined;
},
});
}
});
}
render() {
// This means you can't have children that render into strings...