Skip to content
Permalink
Browse files

Simulate: fixed charCode to be undefined unless specified. Fixed #322…

…9 - Safari: jQuery.simulate() doesn't set "which" field for key events
  • Loading branch information
rdworth committed Nov 7, 2011
1 parent 8fd6101 commit b90d83c6c4e3f5e328d5557aa35ce9fbded6fd0f
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/jquery.simulate.js
@@ -90,7 +90,7 @@ $.extend( $.simulate.prototype, {
shiftKey: false,
metaKey: false,
keyCode: 0,
charCode: 0
charCode: undefined
}, options );

if ( $.isFunction( document.createEvent ) ) {

0 comments on commit b90d83c

Please sign in to comment.
You can’t perform that action at this time.