diff --git a/src/js/core.js b/src/js/core.js index fee46ed6a8..ae1d9e6638 100644 --- a/src/js/core.js +++ b/src/js/core.js @@ -43,7 +43,7 @@ var videojs = function(id, options, ready){ // If options or ready funtion are passed, warn if (options) { - Lib.log.warn ('Player "' + id + '" is already initialised. Options will not be applied.'); + Lib.log.warn('Player "' + id + '" is already initialised. Options will not be applied.'); } if (ready) { diff --git a/src/js/events.js b/src/js/events.js index 6d811529cc..814d6476cf 100644 --- a/src/js/events.js +++ b/src/js/events.js @@ -40,7 +40,7 @@ var fixEvent = function(event) { if (key !== 'layerX' && key !== 'layerY' && key !== 'keyLocation') { // Chrome 32+ warns if you try to copy deprecated returnValue, but // we still want to if preventDefault isn't supported (IE8). - if (!(key == 'returnValue' && old.preventDefault)) { + if (!(key === 'returnValue' && old.preventDefault)) { event[key] = old[key]; } } diff --git a/src/js/fullscreen-api.js b/src/js/fullscreen-api.js index 5ae819bef4..84976c1074 100644 --- a/src/js/fullscreen-api.js +++ b/src/js/fullscreen-api.js @@ -62,7 +62,7 @@ let specApi = apiMap[0]; let browserApi; // determine the supported set of functions -for (let i=0; i