]> source.dussan.org Git - jquery-ui.git/commitdiff
Simulate: fixed charCode to be undefined unless specified. Fixed #3229 - Safari:...
authorRichard D. Worth <rdworth@gmail.com>
Mon, 7 Nov 2011 20:49:20 +0000 (15:49 -0500)
committerScott González <scott.gonzalez@gmail.com>
Thu, 12 Jan 2012 14:06:44 +0000 (09:06 -0500)
(cherry picked from commit b90d83c6c4e3f5e328d5557aa35ce9fbded6fd0f)

tests/jquery.simulate.js

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