From 0a6657514058935251366c770bfd85a419f60786 Mon Sep 17 00:00:00 2001 From: Kawandeep Virdee Date: Sun, 10 Nov 2013 13:23:50 -0500 Subject: movie comes to the top if it is playing --- assets/js/models/sample.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'assets/js/models/sample.js') 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); -- cgit v1.2.3