]> source.dussan.org Git - jquery.git/commitdiff
Removes early return loop, must copy properties
authorRick Waldron <waldron.rick@gmail.com>
Thu, 22 Sep 2011 23:05:06 +0000 (19:05 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Thu, 22 Sep 2011 23:05:06 +0000 (19:05 -0400)
src/event.js

index fec3e6d495d33bec40187a1bb4cecbf65ab6d920..38ed3ae91bfcf37ec72ea6689b482c680b2699e3 100644 (file)
@@ -492,11 +492,6 @@ jQuery.event = {
                event = jQuery.Event( originalEvent );
                propHook = jQuery.event.propHooks[ event.type ];
 
-               // Determine if an early return is possible
-               if ( !propHook && ( event.target && event.target.nodeType !== 3 ) && event.relatedTarget ) {
-                       return event;
-               }
-
                for ( var i = this.props.length, prop; i; ) {
                        prop = this.props[ --i ];
                        event[ prop ] = originalEvent[ prop ];