Commit r1365 against 2.0, rather than sandbox.

git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1366 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-08-25 02:08:20 +00:00
parent 5987d5ea33
commit 0a01ef899e

View File

@@ -209,7 +209,7 @@ OpenLayers.Control.MouseDefaults.prototype =
var inMap = false;
var elem = Event.element(e);
while(elem != null) {
if (elem == this.map.div) {
if (this.map && elem == this.map.div) {
inMap = true;
break;
}