use the namespace corrected event.stop(). (See #880)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@4246 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-09-12 19:02:09 +00:00
parent 5ddca00750
commit ded09b6131
3 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@
marker = new OpenLayers.Marker(new OpenLayers.LonLat(90,10),icon.clone());
marker.setOpacity(0.2);
marker.events.register('mousedown', marker, function(evt) { alert(this.icon.url); Event.stop(evt); });
marker.events.register('mousedown', marker, function(evt) { alert(this.icon.url); OpenLayers.Event.stop(evt); });
markers.addMarker(marker);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.zoomToMaxExtent();