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...
1 parent aa9ca2b commit 2e1da90608e0d442f1e03508e65875c6949bc250 @rdworth rdworth committed with scottgonzalez Nov 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/jquery.simulate.js
View
@@ -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.