diff --git a/CHANGELOG.md b/CHANGELOG.md index 680065f41..13a27e352 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ CHANGELOG ## HEAD (Unreleased) * Updated to version 4.4.1 of the SWF ([view](https://github.com/videojs/video.js/pull/1285)) +* Fixed a minification issue with the fullscreen event. fixes #1282 ([view](https://github.com/videojs/video.js/pull/1286)) -------------------- diff --git a/src/js/player.js b/src/js/player.js index c8d461682..b39f77a8a 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -922,12 +922,12 @@ vjs.Player.prototype.requestFullscreen = function(){ // when cancelling fullscreen. Otherwise if there's multiple // players on a page, they would all be reacting to the same fullscreen // events - vjs.on(document, fsApi.fullscreenchange, vjs.bind(this, function(e){ + vjs.on(document, fsApi['fullscreenchange'], vjs.bind(this, function(e){ this.isFullscreen(document[fsApi.fullscreenElement]); // If cancelling fullscreen, remove event listener. if (this.isFullscreen() === false) { - vjs.off(document, fsApi.fullscreenchange, arguments.callee); + vjs.off(document, fsApi['fullscreenchange'], arguments.callee); } this.trigger('fullscreenchange');