mirror of
https://github.com/videojs/video.js.git
synced 2025-01-27 11:22:06 +02:00
Fixed an issue where Firefox would lose the type of an event.
Because it returns false for event.hasOwnProperty('type');
This commit is contained in:
parent
83553b6540
commit
bdb4456c62
@ -169,6 +169,9 @@ vjs.fixEvent = function(event) {
|
||||
|
||||
// Clone the old object so that we can modify the values event = {};
|
||||
event = vjs.obj.copy(old);
|
||||
// Firefox returns false for event.hasOwnProperty('type'),
|
||||
// so it was getting lost in the object copy
|
||||
event.type = old.type;
|
||||
|
||||
// The event occurred on this element
|
||||
if (!event.target) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user