Fix Cli Test fails: JavaScript Standard Style

This commit is contained in:
Rolando Guedes
2016-05-12 15:31:28 +01:00
parent ed1b27ede0
commit 4faf30e0a1

View File

@@ -13,14 +13,13 @@ var {dispatch, dispatcher} = require('../lib/dispatcher')
// Handles volume change by wheel // Handles volume change by wheel
var handleVolumeWheel = function (e) { var handleVolumeWheel = function (e) {
dispatch('changeVolume', (-e.deltaY | e.deltaX) / 500) dispatch('changeVolume', (-e.deltaY | e.deltaX) / 500)
}; }
// Shows a streaming video player. Standard features + Chromecast + Airplay // Shows a streaming video player. Standard features + Chromecast + Airplay
function Player (state) { function Player (state) {
// Show the video as large as will fit in the window, play immediately // Show the video as large as will fit in the window, play immediately
// If the video is on Chromecast or Airplay, show a title screen instead // If the video is on Chromecast or Airplay, show a title screen instead
var showVideo = state.playing.location === 'local'; var showVideo = state.playing.location === 'local'
return hx` return hx`
<div <div
class='player' class='player'
@@ -523,13 +522,13 @@ function renderLoadingBar (state) {
<div class='loading-bar'> <div class='loading-bar'>
${parts.map(function (part) { ${parts.map(function (part) {
var style = { var style = {
left: (100 * part.start / fileProg.numPieces) + '%', left: (100 * part.start / fileProg.numPieces) + '%',
width: (100 * part.count / fileProg.numPieces) + '%' width: (100 * part.count / fileProg.numPieces) + '%'
} }
return hx`<div class='loading-bar-part' style=${style}></div>` return hx`<div class='loading-bar-part' style=${style}></div>`
})} })}
</div> </div>
` `
} }