Bug fix to Util.mouseLeft() for IE.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@309 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Schuyler Erle
2006-05-24 03:25:17 +00:00
parent 7683e0853a
commit b9ab087d32

View File

@@ -761,7 +761,7 @@ OpenLayers.Util.mouseLeft = function (evt, div) {
// start with the element to which the mouse has moved
var target = (evt.relatedTarget) ? evt.relatedTarget : evt.toElement;
// walk up the DOM tree.
while (target != div && target != document.documentElement) {
while (target != div && target != null) {
target = target.parentNode;
}
// if the target we stop at isn't the div, then we've left the div.