Skip to content

Commit

Permalink
Update React to v0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Oct 16, 2015
1 parent d308aa6 commit 6cd433f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"homepage": "https://github.com/CookPete/react-player",
"peerDependencies": {
"react": ">=0.13.0"
"react": "^0.14.0"
},
"devDependencies": {
"babel": "^5.8.21",
Expand All @@ -42,7 +42,8 @@
"exports-loader": "^0.6.2",
"imports-loader": "^0.6.4",
"mocha": "^2.2.5",
"react": ">=0.13.0",
"react": "^0.14.0",
"react-dom": "^0.14.0",
"react-hot-loader": "^1.2.7",
"standard": "^5.1.0",
"webpack": "^1.9.6",
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react'
import ReactDOM from 'react-dom'

import App from './App'

React.render(<App />, document.getElementById('app'))
ReactDOM.render(<App />, document.getElementById('app'))
2 changes: 1 addition & 1 deletion src/players/FilePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class FilePlayer extends Base {
return VIDEO_EXTENSIONS.test(url) || AUDIO_EXTENSIONS.test(url)
}
componentDidMount () {
this.player = React.findDOMNode(this.refs.player)
this.player = this.refs.player
this.player.onended = this.props.onEnded
this.player.onplay = this.props.onPlay
this.player.onpause = this.props.onPause
Expand Down
2 changes: 1 addition & 1 deletion src/players/Vimeo.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class Vimeo extends Base {
}
componentDidMount () {
window.addEventListener('message', this.onMessage, false)
this.iframe = React.findDOMNode(this.refs.iframe)
this.iframe = this.refs.iframe
super.componentDidMount()
}
shouldComponentUpdate (nextProps) {
Expand Down

0 comments on commit 6cd433f

Please sign in to comment.