]> source.dussan.org Git - jquery.git/commitdiff
Fixed bug #222 (again)
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 6 Oct 2006 14:05:30 +0000 (14:05 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 6 Oct 2006 14:05:30 +0000 (14:05 +0000)
src/event/event.js

index de0b02d5aaf105771aca9ac4809dc30efe2f3668..81c62d83b13339aa64ba60f095895557e28ac7c4 100644 (file)
@@ -80,7 +80,7 @@ jQuery.fn.extend({
                        var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;\r
        \r
                        // Traverse up the tree\r
-                       while ( p && p != this ) try { p = p.parentNode } catch(e) { p = null; };\r
+                       while ( p && p != this ) try { p = p.parentNode } catch(e) { p = this; };\r
                        \r
                        // If we actually just moused on to a sub-element, ignore it\r
                        if ( p == this ) return false;\r