]> source.dussan.org Git - jquery.git/commitdiff
Added back the check for safari before checking target.nodeType, IE fails otherwise
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 3 Jan 2007 12:57:42 +0000 (12:57 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 3 Jan 2007 12:57:42 +0000 (12:57 +0000)
src/event/event.js

index 1a8a6b51968948ac6e59ce1bb65c0b12beb7eff4..ac6948046f9c17ac56774badb143e386afc1655c 100644 (file)
@@ -140,7 +140,7 @@ jQuery.event = {
                }
                                
                // 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 
                        // and clone because target is read only
                        var originalEvent = event;