diff --git a/lib/OpenLayers/Control.js b/lib/OpenLayers/Control.js index d81886f424..db1a498dbd 100644 --- a/lib/OpenLayers/Control.js +++ b/lib/OpenLayers/Control.js @@ -1,13 +1,25 @@ +/** +* @class +*/ OpenLayers.Control = Class.create(); OpenLayers.Control.prototype = { - // OpenLayers.Map + + /** @type OpenLayers.Map */ map: null, - // HTMLDivElement + /** @type DOMElement */ div: null, - initialize: function () {}, + /** + * @constructor + */ + initialize: function () { + }, + /** + * @returns A reference to the DIV DOMElement containing the control + * @type DOMElement + */ draw: function () { if (this.div == null) { this.div = OpenLayers.Util.createDiv(); @@ -15,8 +27,13 @@ OpenLayers.Control.prototype = { return this.div; }, + /** + */ destroy: function () { // eliminate circular references this.map = null; - } + }, + + /** @type String */ + CLASS_NAME: "OpenLayers.Control" };