1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-27 11:22:06 +02:00

@forbesjo fixed webkit deprecation warnings. closes #2559

fixes #2558
This commit is contained in:
jforbes 2015-09-10 14:53:15 -07:00 committed by heff
parent a584104b78
commit 849b85bb83
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@ CHANGELOG
=========
## HEAD (Unreleased)
_(none)_
* @forbesjo fixed webkit deprecation warnings ([view](https://github.com/videojs/video.js/pull/2559))
--------------------

View File

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