From a8c428a4434f4ef1a630b2704bc2909c69dd3da8 Mon Sep 17 00:00:00 2001 From: Kasper Moskwiak Date: Thu, 29 Oct 2015 21:20:22 +0100 Subject: [PATCH] issue #5 player not ready --- lib/videojs-resolution-switcher.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/videojs-resolution-switcher.js b/lib/videojs-resolution-switcher.js index 15e3c72..b61cc7d 100644 --- a/lib/videojs-resolution-switcher.js +++ b/lib/videojs-resolution-switcher.js @@ -4,6 +4,9 @@ * Licensed under the Apache-2.0 license. */ (function() { + /* jshint eqnull: true*/ + /* global require */ + 'use strict'; var videojs = null; if(typeof window.videojs === 'undefined' && typeof require === 'function') { videojs = require('videojs'); @@ -12,8 +15,7 @@ } (function(window, videojs) { - /* jshint eqnull: true*/ - 'use strict'; + var defaults = {}, videoJsResolutionSwitcher; @@ -224,7 +226,10 @@ // Create resolution switcher for videos form tag inside