Skip to content
Permalink
Browse files

Removes early return loop, must copy properties

  • Loading branch information...
rwaldron committed Sep 22, 2011
1 parent 14cb04d commit c7f3b6109eabd32ade5085ef81ec2208964122cd
Showing with 0 additions and 5 deletions.
  1. +0 −5 src/event.js
@@ -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 ];

0 comments on commit c7f3b61

Please sign in to comment.
You can’t perform that action at this time.