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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user