diff options
| author | Kawandeep Virdee | 2013-11-10 13:23:50 -0500 | 
|---|---|---|
| committer | Kawandeep Virdee | 2013-11-10 13:23:50 -0500 | 
| commit | 0a6657514058935251366c770bfd85a419f60786 (patch) | |
| tree | 80d8519c5143423fa52b918065b9068bdc1754b5 /assets/js/models/sample.js | |
| parent | 2d6422265f55905cb83b56ce4dfa2090f5dfe62e (diff) | |
| download | clip-play-0a6657514058935251366c770bfd85a419f60786.tar.bz2 | |
movie comes to the top if it is playing
Diffstat (limited to 'assets/js/models/sample.js')
| -rw-r--r-- | assets/js/models/sample.js | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/assets/js/models/sample.js b/assets/js/models/sample.js index c3c395c..c85a008 100644 --- a/assets/js/models/sample.js +++ b/assets/js/models/sample.js @@ -45,11 +45,12 @@ ClipPlay.Models.Sample = Backbone.Model.extend({  	play: function() {          console.log('playing');      //play then pause -        this.set('playing',true);          window.clearTimeout(this.get('timeout')); +        this.set('playing',false);          this.get('player').pause();          this.get('player').seekTo(this.get('start'));          this.get('player').play(); +        this.set('playing',true);          var that = this;          var length = Math.abs(this.get('stop') - this.get('start'));          console.log(length); | 
