[OpenLayers-Commits] r4246 - trunk/openlayers/examples

commits at openlayers.org commits at openlayers.org
Wed Sep 12 15:02:10 EDT 2007


Author: euzuro
Date: 2007-09-12 15:02:09 -0400 (Wed, 12 Sep 2007)
New Revision: 4246

Modified:
   trunk/openlayers/examples/getfeatureinfo.html
   trunk/openlayers/examples/markers.html
   trunk/openlayers/examples/popups.html
Log:
use the namespace corrected event.stop(). (See #880)

Modified: trunk/openlayers/examples/getfeatureinfo.html
===================================================================
--- trunk/openlayers/examples/getfeatureinfo.html	2007-09-12 18:30:01 UTC (rev 4245)
+++ trunk/openlayers/examples/getfeatureinfo.html	2007-09-12 19:02:09 UTC (rev 4246)
@@ -37,7 +37,7 @@
                             WIDTH: wms.map.size.w,
                             HEIGHT: wms.map.size.h});
             OpenLayers.loadURL(url, '', this, setHTML);
-            Event.stop(e);
+            OpenLayers.Event.stop(e);
       });
     function setHTML(response) { 
         OpenLayers.Util.getElement('nodeList').innerHTML = response.responseText;

Modified: trunk/openlayers/examples/markers.html
===================================================================
--- trunk/openlayers/examples/markers.html	2007-09-12 18:30:01 UTC (rev 4245)
+++ trunk/openlayers/examples/markers.html	2007-09-12 19:02:09 UTC (rev 4246)
@@ -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();

Modified: trunk/openlayers/examples/popups.html
===================================================================
--- trunk/openlayers/examples/popups.html	2007-09-12 18:30:01 UTC (rev 4245)
+++ trunk/openlayers/examples/popups.html	2007-09-12 19:02:09 UTC (rev 4246)
@@ -88,7 +88,7 @@
                 popup.destroy();
                 popup = null;
             }
-            Event.stop(evt);
+            OpenLayers.Event.stop(evt);
         }        
 
         /**
@@ -98,7 +98,7 @@
             markers.map.removePopup(popup);
             popup.destroy();
             popup = null;
-            Event.stop(evt);
+            OpenLayers.Event.stop(evt);
         }
 
 



More information about the Commits mailing list