Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
jshint fixes
  • Loading branch information
jw-kaurand committed Feb 4, 2015
1 parent d2e9322 commit e291496
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/js/html5/providers/jwplayer.html5.youtube.js
Expand Up @@ -177,8 +177,8 @@
return function() {
var i = start;
var result = args[start].apply(this, arguments);
while (i--) result = args[i].call(this, result);
return result;
while (i--) { result = args[i].call(this, result); }
return result;
};
}

Expand Down Expand Up @@ -388,7 +388,11 @@
_volumeHandler();
_this.load(item);
};
_youtubePlayerReadyCallback = (_youtubePlayerReadyCallback) ? _composeCallbacks(onStart, _youtubePlayerReadyCallback) : onStart;
if (_youtubePlayerReadyCallback) {
_youtubePlayerReadyCallback = _composeCallbacks(onStart, _youtubePlayerReadyCallback);
} else {
_youtubePlayerReadyCallback = onStart;
}
return;
}

Expand Down Expand Up @@ -433,7 +437,11 @@
if (_youtubePlayer && _youtubePlayer.playVideo) {
_youtubePlayer.playVideo();
} else { // If the _youtubePlayer isn't setup, then play when we're ready
_youtubePlayerReadyCallback = (_youtubePlayerReadyCallback) ? _composeCallbacks(this.play, _youtubePlayerReadyCallback) : this.play;
if (_youtubePlayerReadyCallback) {
_youtubePlayerReadyCallback = _composeCallbacks(this.play, _youtubePlayerReadyCallback);
} else {
_youtubePlayerReadyCallback = this.play;
}
}
};

Expand Down

0 comments on commit e291496

Please sign in to comment.