Comented duplicated componentWillReceiveProps function.
This commit is contained in:
parent
7d2617e9dc
commit
bc262481a1
1 changed files with 4 additions and 4 deletions
|
@ -22,10 +22,10 @@ class VideoPlayer extends React.PureComponent {
|
|||
this.toggleFullScreenVideo = this.toggleFullScreen.bind(this);
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
const el = this.refs.media.children[0];
|
||||
if (!this.props.paused && nextProps.paused && !el.paused) el.pause();
|
||||
}
|
||||
// componentWillReceiveProps(nextProps) {
|
||||
// const el = this.refs.media.children[0];
|
||||
// if (!this.props.paused && nextProps.paused && !el.paused) el.pause();
|
||||
// }
|
||||
|
||||
componentDidMount() {
|
||||
const container = this.media;
|
||||
|
|
Loading…
Reference in a new issue