HTMLSubtitles and HTMLVideo instances frozen

This commit is contained in:
NikolaBorislavovHristov 2019-02-11 22:38:09 +02:00
parent 7111a9599d
commit 312b3d8d15
2 changed files with 4 additions and 0 deletions

View file

@ -165,6 +165,8 @@ var HTMLSubtitles = function(containerElement) {
containerElement.removeChild(stylesElement);
containerElement.removeChild(subtitlesElement);
};
Object.freeze(this);
};
module.exports = HTMLSubtitles;

View file

@ -397,6 +397,8 @@ var HTMLVideo = function(containerElement) {
dispatchArgsQueue.push(Array.from(arguments));
}
};
Object.freeze(this);
};
HTMLVideo.manifest = Object.freeze({