From 31f1dd2610fe9a76f649278fc818b86b7b418081 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 28 Feb 2011 00:56:20 +0000 Subject: [PATCH] Moving some properties (title, div, type, events, activate, deactivate) to API Properties. (Closes #2827) git-svn-id: http://svn.openlayers.org/trunk/openlayers@11570 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/OpenLayers/Control.js b/lib/OpenLayers/Control.js index e35f1cd32c..0323b07f34 100644 --- a/lib/OpenLayers/Control.js +++ b/lib/OpenLayers/Control.js @@ -71,13 +71,14 @@ OpenLayers.Control = OpenLayers.Class({ map: null, /** - * Property: div - * {DOMElement} + * APIProperty: div + * {DOMElement} The element that contains the control, if not present the + * control is placed inside the map. */ div: null, /** - * Property: type + * APIProperty: type * {Number} Controls can have a 'type'. The type determines the type of * interactions which are possible with them when they are placed in an * . @@ -101,7 +102,7 @@ OpenLayers.Control = OpenLayers.Class({ displayClass: "", /** - * Property: title + * APIProperty: title * {string} This property is used for showing a tooltip over the * Control. */ @@ -136,9 +137,9 @@ OpenLayers.Control = OpenLayers.Class({ eventListeners: null, /** - * Property: events - * {} Events instance for triggering control specific - * events. + * APIProperty: events + * {} Events instance for listeners and triggering + * control specific events. */ events: null, @@ -296,7 +297,7 @@ OpenLayers.Control = OpenLayers.Class({ }, /** - * Method: activate + * APIMethod: activate * Explicitly activates a control and it's associated * handler if one has been set. Controls can be * deactivated by calling the deactivate() method. @@ -324,7 +325,7 @@ OpenLayers.Control = OpenLayers.Class({ }, /** - * Method: deactivate + * APIMethod: deactivate * Deactivates a control and it's associated handler if any. The exact * effect of this depends on the control itself. *