From 70af5bbb7f13a1facf3e2281b69e4aee5df301c4 Mon Sep 17 00:00:00 2001 From: euzuro Date: Sun, 2 Jul 2006 18:43:50 +0000 Subject: [PATCH] jsdoc git-svn-id: http://svn.openlayers.org/trunk/openlayers@852 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/Permalink.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Control/Permalink.js b/lib/OpenLayers/Control/Permalink.js index 00992476e1..8c35390aea 100644 --- a/lib/OpenLayers/Control/Permalink.js +++ b/lib/OpenLayers/Control/Permalink.js @@ -1,21 +1,38 @@ /* 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. */ + // @require: OpenLayers/Control.js + + +/** + * @class + */ OpenLayers.Control.Permalink = Class.create(); OpenLayers.Control.Permalink.prototype = Object.extend( new OpenLayers.Control(), { + /** @type DOMElement */ element: null, + /** @type String */ base: '', + /** + * @constructor + * + * @param {DOMElement} element + * @param {String} base + */ initialize: function(element, base) { OpenLayers.Control.prototype.initialize.apply(this, arguments); this.element = element; if (base) this.base = base; }, - + + /** + * @type DOMElement + */ draw: function() { OpenLayers.Control.prototype.draw.apply(this, arguments); var args = OpenLayers.Util.getArgs(); @@ -44,6 +61,9 @@ OpenLayers.Control.Permalink.prototype = return this.div; }, + /** + * + */ updateLink: function() { center = this.map.getCenter(); zoom = this.map.getZoom();