From 160de38800a2b8ee48f0cb5f98b829f89282d58a Mon Sep 17 00:00:00 2001 From: Bruno Coelho Date: Sat, 21 Mar 2015 18:32:32 -0300 Subject: [PATCH] Remove deprecated method --- public/scripts/example.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/scripts/example.js b/public/scripts/example.js index c912e497..4fa306b8 100644 --- a/public/scripts/example.js +++ b/public/scripts/example.js @@ -101,14 +101,14 @@ var CommentList = React.createClass({ var CommentForm = React.createClass({ handleSubmit: function(e) { e.preventDefault(); - var author = this.refs.author.getDOMNode().value.trim(); - var text = this.refs.text.getDOMNode().value.trim(); + var author = React.findDOMNode(this.refs.author).value.trim(); + var text = React.findDOMNode(this.refs.text).value.trim(); if (!text || !author) { return; } this.props.onCommentSubmit({author: author, text: text}); - this.refs.author.getDOMNode().value = ''; - this.refs.text.getDOMNode().value = ''; + React.findDOMNode(this.refs.author).value = ''; + React.findDOMNode(this.refs.text).value = ''; }, render: function() { return (