1
0
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:
Steve Heffernan 2013-04-16 15:58:57 -07:00
parent 83553b6540
commit bdb4456c62

View File

@ -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) {