Merge pull request #4010 from dmitrylyzo/cleanup-1

This commit is contained in:
Bill Thornton 2022-10-07 09:40:37 -04:00 committed by GitHub
commit e8a8b3e411
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -273,10 +273,6 @@ function tryRemoveElement(elem) {
* @type {any | undefined} * @type {any | undefined}
*/ */
#lastProfile; #lastProfile;
/**
* @type {MutationObserver | IntersectionObserver | undefined} (Unclear observer typing)
*/
#resizeObserver;
constructor() { constructor() {
if (browser.edgeUwp) { if (browser.edgeUwp) {
@ -963,11 +959,6 @@ function tryRemoveElement(elem) {
* @private * @private
*/ */
destroyCustomTrack(videoElement) { destroyCustomTrack(videoElement) {
if (this.#resizeObserver) {
this.#resizeObserver.disconnect();
this.#resizeObserver = null;
}
if (this.#videoSubtitlesElem) { if (this.#videoSubtitlesElem) {
const subtitlesContainer = this.#videoSubtitlesElem.parentNode; const subtitlesContainer = this.#videoSubtitlesElem.parentNode;
if (subtitlesContainer) { if (subtitlesContainer) {