# HG changeset patch # User Chloe Laisne # Date 1467641899 -7200 # Node ID 2145b80776a3820c5b17790156deb2eabbcbf58e # Parent 3578846b66f4921da9e05a3d81087583c80c2b2a Linting diff -r 3578846b66f4 -r 2145b80776a3 cms/app-client/app/components/player-component.js --- a/cms/app-client/app/components/player-component.js Mon Jul 04 12:42:57 2016 +0200 +++ b/cms/app-client/app/components/player-component.js Mon Jul 04 16:18:19 2016 +0200 @@ -48,7 +48,7 @@ })); }, - onUpdate: function(event) { + onUpdate: function() { var currentTime = this.get('popcorn').currentTime(); var duration = this.get('popcorn').duration(); this.$('.bar .value').width(currentTime * 100 / duration + '%'); @@ -56,11 +56,11 @@ this.set('remaining', duration - currentTime); }, - onPlay: function(event) { + onPlay: function() { this.get('player').set('playing', true); }, - onPause: function(event) { + onPause: function() { this.get('player').set('playing', false); }, diff -r 3578846b66f4 -r 2145b80776a3 cms/app-client/app/models/document.js --- a/cms/app-client/app/models/document.js Mon Jul 04 12:42:57 2016 +0200 +++ b/cms/app-client/app/models/document.js Mon Jul 04 16:18:19 2016 +0200 @@ -35,7 +35,7 @@ Object.keys(this.get('mediaArray')).forEach(function(key) { if (!duration && self.get('mediaArray')[key].extent_ms) { duration = self.get('mediaArray')[key].extent_ms; - }; + } }); return duration / 1000; })