Skip to content

Commit

Permalink
Simulate: fixed charCode to be undefined unless specified. Fixed #322…
Browse files Browse the repository at this point in the history
…9 - Safari: jQuery.simulate() doesn't set "which" field for key events

(cherry picked from commit b90d83c)
  • Loading branch information
rdworth authored and scottgonzalez committed Jan 12, 2012
1 parent aa9ca2b commit 2e1da90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/jquery.simulate.js
Expand Up @@ -90,7 +90,7 @@ $.extend( $.simulate.prototype, {
shiftKey: false,
metaKey: false,
keyCode: 0,
charCode: 0
charCode: undefined
}, options );

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

0 comments on commit 2e1da90

Please sign in to comment.