From b90d83c6c4e3f5e328d5557aa35ce9fbded6fd0f Mon Sep 17 00:00:00 2001 From: "Richard D. Worth" Date: Mon, 7 Nov 2011 15:49:20 -0500 Subject: Simulate: fixed charCode to be undefined unless specified. Fixed #3229 - Safari: jQuery.simulate() doesn't set "which" field for key events --- tests/jquery.simulate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/jquery.simulate.js b/tests/jquery.simulate.js index adc340049..a37302c46 100644 --- a/tests/jquery.simulate.js +++ b/tests/jquery.simulate.js @@ -90,7 +90,7 @@ $.extend( $.simulate.prototype, { shiftKey: false, metaKey: false, keyCode: 0, - charCode: 0 + charCode: undefined }, options ); if ( $.isFunction( document.createEvent ) ) { -- cgit v1.2.3