mirror of
https://github.com/videojs/video.js.git
synced 2025-01-27 11:22:06 +02:00
parent
a584104b78
commit
849b85bb83
@ -2,7 +2,7 @@ CHANGELOG
|
||||
=========
|
||||
|
||||
## HEAD (Unreleased)
|
||||
_(none)_
|
||||
* @forbesjo fixed webkit deprecation warnings ([view](https://github.com/videojs/video.js/pull/2559))
|
||||
|
||||
--------------------
|
||||
|
||||
|
@ -188,7 +188,9 @@ vjs.fixEvent = function(event) {
|
||||
for (var key in old) {
|
||||
// Safari 6.0.3 warns you if you try to copy deprecated layerX/Y
|
||||
// Chrome warns you if you try to copy deprecated keyboardEvent.keyLocation
|
||||
if (key !== 'layerX' && key !== 'layerY' && key !== 'keyLocation') {
|
||||
// and webkitMovementX/Y
|
||||
if (key !== 'layerX' && key !== 'layerY' && key !== 'keyLocation' &&
|
||||
key !== 'webkitMovementX' && key !== 'webkitMovementY') {
|
||||
// Chrome 32+ warns if you try to copy deprecated returnValue, but
|
||||
// we still want to if preventDefault isn't supported (IE8).
|
||||
if (!(key == 'returnValue' && old.preventDefault)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user