mirror of
https://github.com/videojs/video.js.git
synced 2025-01-19 10:54:16 +02:00
Fixes exception when userActive called but tech not initialized
This commit is contained in:
parent
b98d719564
commit
7a4c602be0
@ -1273,10 +1273,14 @@ vjs.Player.prototype.userActive = function(bool){
|
||||
//
|
||||
// When this gets resolved in ALL browsers it can be removed
|
||||
// https://code.google.com/p/chromium/issues/detail?id=103041
|
||||
this.tech.one('mousemove', function(e){
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
if(typeof(this.tech) != 'undefined') {
|
||||
this.tech.one('mousemove', function(e){
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
this.removeClass('vjs-user-active');
|
||||
this.addClass('vjs-user-inactive');
|
||||
this.trigger('userinactive');
|
||||
|
Loading…
x
Reference in New Issue
Block a user