aboutsummaryrefslogtreecommitdiffstats
path: root/tests/jquery.simulate.js
diff options
context:
space:
mode:
authorRichard D. Worth <rdworth@gmail.com>2011-11-07 15:49:20 -0500
committerScott González <scott.gonzalez@gmail.com>2012-01-12 09:06:44 -0500
commit2e1da90608e0d442f1e03508e65875c6949bc250 (patch)
treedb3104b36fb7b6e3fe4b0bd4997dc1dfae858de3 /tests/jquery.simulate.js
parentaa9ca2ba84cbc78f77e47eeef91747cf22b14824 (diff)
downloadjquery-ui-2e1da90608e0d442f1e03508e65875c6949bc250.tar.gz
jquery-ui-2e1da90608e0d442f1e03508e65875c6949bc250.zip
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 b90d83c6c4e3f5e328d5557aa35ce9fbded6fd0f)
Diffstat (limited to 'tests/jquery.simulate.js')
-rw-r--r--tests/jquery.simulate.js2
1 files changed, 1 insertions, 1 deletions
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 ) ) {