From b57b7b2153c468d1457f657641a31f36ec61013b Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Tue, 14 Aug 2018 00:02:01 +1000 Subject: v3.4.0 - Accessibility improvements (see #905) - Improvements to the way the controls work on iOS - Demo code clean up - YouTube quality selection removed due to their poor support for it. As a result, the `qualityrequested` event has been removed - Controls spacing improvements - Fix for pressed property missing with custom controls (Fixes #1062) - Fix #1153: Captions language fallback (thanks @friday) - Fix for setting pressed property of undefined (Fixes #1102) --- demo/dist/demo.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'demo/dist/demo.js') diff --git a/demo/dist/demo.js b/demo/dist/demo.js index 44f77df4..8363e33f 100644 --- a/demo/dist/demo.js +++ b/demo/dist/demo.js @@ -4118,9 +4118,10 @@ typeof navigator === "object" && (function () { // Remove class on blur document.addEventListener('focusout', function (event) { - if (container.contains(event.target)) { + if (!event.target.classList || container.contains(event.target)) { return; } + event.target.classList.remove(tabClassName); }); @@ -4135,7 +4136,7 @@ typeof navigator === "object" && (function () { setTimeout(function () { var focused = document.activeElement; - if (!focused || container.contains(focused)) { + if (!focused || !focused.classList || container.contains(focused)) { return; } -- cgit v1.2.3