diff --git a/src/js/events.js b/src/js/events.js index bd645a1fa..c160b0b3e 100644 --- a/src/js/events.js +++ b/src/js/events.js @@ -167,11 +167,15 @@ vjs.fixEvent = function(event) { if (!event || !event.isPropagationStopped) { var old = event || window.event; + 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; + // IE8 Doesn't like when you mess with native event properties + // Firefox returns false for event.hasOwnProperty('type') and other props + // which makes copying more difficult. + // TODO: Probably best to create a whitelist of event props + for (var key in old) { + event[key] = old[key]; + } // The event occurred on this element if (!event.target) {