1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-24 08:42:25 +02:00

@gkatsev removed event.isDefaultPrevented in favor of event.defaultPrevented. closes #2081

This commit is contained in:
Gary Katsevman 2015-04-28 11:45:06 -07:00 committed by heff
parent 4ac762cf48
commit 94f33c8d43
2 changed files with 1 additions and 2 deletions

View File

@ -13,6 +13,7 @@ CHANGELOG
* @mmcc added ES6 default args and template strings ([view](https://github.com/videojs/video.js/pull/2015))
* @dconnolly replaced JSON.parse with a safe non-eval JSON parse ([view](https://github.com/videojs/video.js/pull/2077))
* @mmcc added a new default skin, switched to SASS, modified the html ([view](https://github.com/videojs/video.js/pull/1999))
* @gkatsev removed event.isDefaultPrevented in favor of event.defaultPrevented ([view](https://github.com/videojs/video.js/pull/2081))
--------------------

View File

@ -62,11 +62,9 @@ var fixEvent = function(event) {
old.preventDefault();
}
event.returnValue = false;
event.isDefaultPrevented = returnTrue;
event.defaultPrevented = true;
};
event.isDefaultPrevented = returnFalse;
event.defaultPrevented = false;
// Stop the event from bubbling