Merge pull request #4010 from dmitrylyzo/cleanup-1
This commit is contained in:
commit
e8a8b3e411
1 changed files with 0 additions and 9 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue