Simulate: fixed charCode to be undefined unless specified. Fixed #3229 - Safari: jQuery.simulate() doesn't set "which" field for key events

(cherry picked from commit b90d83c6c4)
This commit is contained in:
Richard D. Worth 2011-11-07 15:49:20 -05:00 committed by Scott González
parent aa9ca2ba84
commit 2e1da90608

View File

@ -90,7 +90,7 @@ $.extend( $.simulate.prototype, {
shiftKey: false,
metaKey: false,
keyCode: 0,
charCode: 0
charCode: undefined
}, options );
if ( $.isFunction( document.createEvent ) ) {