diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-09-02 15:56:13 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-09-02 15:56:13 -0400 |
commit | a020391d93feb93f328cfca4edef6fb8a46cd86c (patch) | |
tree | ab21811abb65589d07cd915382a01728b6bb035e /web/react/components/setting_picture.jsx | |
parent | c7cafb6ac7404b62f38b48d3ec5782863abf203a (diff) | |
download | chat-a020391d93feb93f328cfca4edef6fb8a46cd86c.tar.gz chat-a020391d93feb93f328cfca4edef6fb8a46cd86c.tar.bz2 chat-a020391d93feb93f328cfca4edef6fb8a46cd86c.zip |
Replaced broken remaining calls to getDOMNode with React.findDOMNode
Diffstat (limited to 'web/react/components/setting_picture.jsx')
-rw-r--r-- | web/react/components/setting_picture.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/setting_picture.jsx b/web/react/components/setting_picture.jsx index eaa839733..33c3b650a 100644 --- a/web/react/components/setting_picture.jsx +++ b/web/react/components/setting_picture.jsx @@ -12,7 +12,7 @@ export default class SettingPicture extends React.Component { if (file) { var reader = new FileReader(); - var img = this.refs.image.getDOMNode(); + var img = React.findDOMNode(this.refs.image); reader.onload = function load(e) { $(img).attr('src', e.target.result); }; @@ -128,4 +128,4 @@ SettingPicture.propTypes = { submit: React.PropTypes.func, title: React.PropTypes.string, pictureChange: React.PropTypes.func -};
\ No newline at end of file +}; |