Skip to content

Commit

Permalink
Fixed bug with react api update
Browse files Browse the repository at this point in the history
  • Loading branch information
shimberger committed Dec 26, 2016
1 parent 987e304 commit 1fd6ebd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/build/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var Player = React.createClass({
},

pauseVideo() {
let video = this._video.getDOMNode();
let video = ReactDOM.findDOMNode(this._video);
video.pause();
video.src = "";
video.play();
Expand Down
3 changes: 2 additions & 1 deletion ui/src/jsx/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ var Player = React.createClass({
},

pauseVideo() {
let video = this._video.getDOMNode();
// TODO: Fix to use promises
let video = ReactDOM.findDOMNode(this._video);
video.pause();
video.src = "";
video.play();
Expand Down

0 comments on commit 1fd6ebd

Please sign in to comment.