Skip to content

Commit

Permalink
Adds notes re: crash status of fix conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Sep 22, 2011
1 parent 313bee9 commit 2c903b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,13 +493,14 @@ jQuery.event = {
}

// Fix target property, if necessary
// Removal of this condition will crash IE6,7,8
// Removal will crash IE6,7,8
if ( !event.target ) {
// Fixes #1925 where srcElement might not be defined either
event.target = event.srcElement || document;
}

// check if target is a textnode (safari)
// Removal will crash IE6,7,8
if ( event.target.nodeType === 3 ) {
event.target = event.target.parentNode;
}
Expand Down

0 comments on commit 2c903b8

Please sign in to comment.