Skip to content

Commit

Permalink
JSHinted the multimedia-player
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGoderre committed Aug 31, 2012
1 parent 327aa8c commit 43cfe45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/workers/multimedia.js
Expand Up @@ -370,7 +370,7 @@
},

setCurrentTime: function (t) {
if (typeof this.object.currentTime !== 'function') {this.object.currentTime = t;} else {this.object.setCurrentTime(t);}
if (typeof this.object.currentTime !== 'function') {this.object.currentTime = t; } else {this.object.setCurrentTime(t); }
},

getCaptionsVisible: function () {
Expand All @@ -391,15 +391,15 @@
},

setMuted : function (m) {
if (typeof this.object.muted !== 'function') {this.object.muted = m;} else {this.object.setMuted(m);}
if (typeof this.object.muted !== 'function') {this.object.muted = m; } else {this.object.setMuted(m); }
},

getVolume : function () {
return (typeof this.object.volume !== 'function' ? this.object.volume : this.object.volume());
},

setVolume : function (v) {
if (typeof this.object.volume !== 'function') {this.object.volume = v;} else {this.object.setVolume(v);}
if (typeof this.object.volume !== 'function') {this.object.volume = v; } else {this.object.setVolume(v); }
}
},

Expand All @@ -413,7 +413,7 @@
for (i = 2; i >= 0; i -= 1) {
p = Math.pow(60, i);
c = Math.floor(current / p);
if (t !== "") {t += ":";}
if (t !== "") {t += ":"; }
t += _pe.string.pad(c, 2);
current -= p * c;
}
Expand Down

0 comments on commit 43cfe45

Please sign in to comment.