Added back the check for safari before checking target.nodeType, IE fails otherwise

This commit is contained in:
Jörn Zaefferer 2007-01-03 12:57:42 +00:00
parent bb816b9c95
commit af9e5d45fc

View File

@ -140,7 +140,7 @@ jQuery.event = {
} }
// check if target is a textnode (safari) // check if target is a textnode (safari)
if (event.target.nodeType == 3) { if (jQuery.browser.safari && event.target.nodeType == 3) {
// store a copy of the original event object // store a copy of the original event object
// and clone because target is read only // and clone because target is read only
var originalEvent = event; var originalEvent = event;