Linting
authorChloe Laisne <chloe.laisne@gmail.com>
Mon, 04 Jul 2016 16:18:19 +0200
changeset 220 2145b80776a3
parent 219 3578846b66f4
child 221 0bee030d7411
Linting
cms/app-client/app/components/player-component.js
cms/app-client/app/models/document.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);
     },
 
--- 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;
     })