From 826218017d530ebb5b2fcdeb7482375e65dacd81 Mon Sep 17 00:00:00 2001 From: Baris Sencan Date: Fri, 30 Oct 2015 17:40:11 -0700 Subject: [PATCH] [Video] Method location rearrangement --- Video.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Video.js b/Video.js index 35910a78..3e52592c 100644 --- a/Video.js +++ b/Video.js @@ -31,10 +31,6 @@ class Video extends Component { this._onEnd = this._onEnd.bind(this); } - seek(time) { - this.setState({ seekTime: time }); - } - render() { const { seekTime } = this.state; const { @@ -82,6 +78,10 @@ class Video extends Component { return ; } + seek(time) { + this.setState({ seekTime: time }); + } + _onLoadStart(event) { this.props.onLoadStart && this.props.onLoadStart(event.nativeEvent); }