Skip to content
Permalink
Browse files

Adds notes re: crash status of fix conditions

  • Loading branch information...
rwaldron committed Sep 22, 2011
1 parent 313bee9 commit 2c903b805c922355409b4d593fbc3206395d008d
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/event.js
@@ -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;
}

0 comments on commit 2c903b8

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