]> source.dussan.org Git - jquery.git/commitdiff
Fix #12610, remove unneeded window.event. Close gh-968.
authorSai Wong <sai.wong@huffingtonpost.com>
Sat, 20 Oct 2012 14:01:31 +0000 (10:01 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Sat, 20 Oct 2012 14:07:01 +0000 (10:07 -0400)
src/event.js

index 299f71615f1e39a9211a2f6f506cfd209e64d8aa..f3335a074b691330bea52115f1eb59223e4c6ac3 100644 (file)
@@ -355,7 +355,7 @@ jQuery.event = {
        dispatch: function( event ) {
 
                // Make a writable jQuery.Event from the native event object
-               event = jQuery.event.fix( event || window.event );
+               event = jQuery.event.fix( event );
 
                var i, j, cur, ret, selMatch, matched, matches, handleObj, sel,
                        handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),