Permalink
Browse files

Merge pull request #405 from fredj/handler-options

Move handlerOptions to the Control prototype.
  • Loading branch information...
2 parents 6a039fd + 1a59e47 commit 6adac12fabe59edd607a1bead693b569433f1732 @fredj committed Apr 11, 2012
View
6 lib/OpenLayers/Control.js
@@ -120,6 +120,12 @@ OpenLayers.Control = OpenLayers.Class({
*/
active: null,
+ /**
+ * Property: handlerOptions
+ * {Object} Used to set non-default properties on the control's handler
+ */
+ handlerOptions: null,
+
/**
* Property: handler
* {<OpenLayers.Handler>} null
View
1 lib/OpenLayers/Control/DrawFeature.js
@@ -62,7 +62,6 @@ OpenLayers.Control.DrawFeature = OpenLayers.Class(OpenLayers.Control, {
* APIProperty: handlerOptions
* {Object} Used to set non-default properties on the control's handler
*/
- handlerOptions: null,
/**
* Constructor: OpenLayers.Control.DrawFeature
View
1 lib/OpenLayers/Control/GetFeature.js
@@ -144,7 +144,6 @@ OpenLayers.Control.GetFeature = OpenLayers.Class(OpenLayers.Control, {
* {Object} Additional options for the handlers used by this control. This
* is a hash with the keys "click", "box" and "hover".
*/
- handlerOptions: null,
/**
* Property: handlers
View
1 lib/OpenLayers/Control/Measure.js
@@ -41,7 +41,6 @@ OpenLayers.Control.Measure = OpenLayers.Class(OpenLayers.Control, {
* APIProperty: handlerOptions
* {Object} Used to set non-default properties on the control's handler
*/
- handlerOptions: null,
/**
* Property: callbacks
View
5 lib/OpenLayers/Control/PinchZoom.js
@@ -47,6 +47,11 @@ OpenLayers.Control.PinchZoom = OpenLayers.Class(OpenLayers.Control, {
autoActivate: true,
/**
+ * APIProperty: handlerOptions
+ * {Object} Used to set non-default properties on the pinch handler
+ */
+
+ /**
* Constructor: OpenLayers.Control.PinchZoom
* Create a control for zooming with pinch gestures. This works on devices
* with multi-touch support.
View
1 lib/OpenLayers/Control/SLDSelect.js
@@ -82,7 +82,6 @@ OpenLayers.Control.SLDSelect = OpenLayers.Class(OpenLayers.Control, {
* APIProperty: handlerOptions
* {Object} Used to set non-default properties on the control's handler
*/
- handlerOptions: null,
/**
* APIProperty: sketchStyle
View
1 lib/OpenLayers/Control/WMSGetFeatureInfo.js
@@ -140,7 +140,6 @@ OpenLayers.Control.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, {
* }
* (end)
*/
- handlerOptions: null,
/**
* Property: handler
View
1 lib/OpenLayers/Control/WMTSGetFeatureInfo.js
@@ -120,7 +120,6 @@ OpenLayers.Control.WMTSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, {
* }
* (end)
*/
- handlerOptions: null,
/**
* Property: handler

0 comments on commit 6adac12

Please sign in to comment.