[OpenLayers-Commits] r10937 - trunk/openlayers/lib/OpenLayers/Layer

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Wed Dec 1 10:26:18 EST 2010


Author: ahocevar
Date: 2010-12-01 07:26:18 -0800 (Wed, 01 Dec 2010)
New Revision: 10937

Modified:
   trunk/openlayers/lib/OpenLayers/Layer/Vector.js
Log:
added APIdoc comment for the beforefeatureselected event


Modified: trunk/openlayers/lib/OpenLayers/Layer/Vector.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/Vector.js	2010-12-01 09:22:31 UTC (rev 10936)
+++ trunk/openlayers/lib/OpenLayers/Layer/Vector.js	2010-12-01 15:26:18 UTC (rev 10937)
@@ -64,6 +64,10 @@
      * featuresremoved - Triggered after features are removed. The event
      *      object passed to listeners will have a *features* property with a
      *      reference to an array of removed features.
+     * beforefeatureselected - Triggered after a feature is selected.  Listeners
+     *      will receive an object with a *feature* property referencing the
+     *      feature to be selected. To stop the feature from being selectd, a
+     *      listener should return false.
      * featureselected - Triggered after a feature is selected.  Listeners
      *      will receive an object with a *feature* property referencing the
      *      selected feature.



More information about the Commits mailing list