mirror of
https://github.com/videojs/video.js.git
synced 2024-11-26 08:51:09 +02:00
This commit is contained in:
parent
39ae5178ee
commit
3720a2de12
@ -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))
|
||||
|
||||
--------------------
|
||||
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user