Skip to content

Commit

Permalink
remove error messages in Chrome for copying deprecated webkit-prefixe…
Browse files Browse the repository at this point in the history
…d properties in events
  • Loading branch information
dethe committed Jan 9, 2016
1 parent 53ed50d commit fe933fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/event.js
Expand Up @@ -41,6 +41,7 @@
function cloneEvent(evt){
var newEvent = {};
for (var key in evt){
if (key.substring(0,6) === 'webkit'){ continue; }
if (key === 'returnValue'){ continue; }
if (key === 'keyLocation'){ continue; }
if (typeof evt[key] === 'function'){ continue; }
Expand Down

0 comments on commit fe933fe

Please sign in to comment.