From 68e58ab679f82e8f95a1b1357860f6220c6c6bee Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 12 Jul 2006 00:35:46 +0000 Subject: [PATCH] comments and spacing git-svn-id: http://svn.openlayers.org/trunk/openlayers@938 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/OpenLayers/Control.js b/lib/OpenLayers/Control.js index 759376db7e..2cf0f025ec 100644 --- a/lib/OpenLayers/Control.js +++ b/lib/OpenLayers/Control.js @@ -1,6 +1,7 @@ /* Copyright (c) 2006 MetaCarta, Inc., published under the BSD license. * See http://svn.openlayers.org/trunk/openlayers/license.txt for the full * text of the license. */ + /** * @class */ @@ -18,8 +19,10 @@ OpenLayers.Control.prototype = { position: null, /** - * @constructor - */ + * @constructor + * + * @param {Hash} options + */ initialize: function (options) { Object.extend(this, options); }, @@ -43,11 +46,11 @@ OpenLayers.Control.prototype = { }, /** - * @param {OpenLayers.Pixel} px - * - * @returns A reference to the DIV DOMElement containing the control - * @type DOMElement - */ + * @param {OpenLayers.Pixel} px + * + * @returns A reference to the DIV DOMElement containing the control + * @type DOMElement + */ draw: function (px) { if (this.div == null) { this.div = OpenLayers.Util.createDiv(); @@ -60,8 +63,8 @@ OpenLayers.Control.prototype = { }, /** - * @param {OpenLayers.Pixel} px - */ + * @param {OpenLayers.Pixel} px + */ moveTo: function (px) { if ((px != null) && (this.div != null)) { this.div.style.left = px.x + "px";