--- 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);
},
--- 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;
})