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

This commit is contained in:
Richard D. Worth 2011-11-07 15:49:20 -05:00
parent 8fd6101c3c
commit b90d83c6c4

View File

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