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

(cherry picked from commit b90d83c)
  • Loading branch information
rdworth authored and scottgonzalez committed Jan 12, 2012
1 parent aa9ca2b commit 2e1da90608e0d442f1e03508e65875c6949bc250
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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 2e1da90

Please sign in to comment.