JSDOC, coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@76 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -1,13 +1,25 @@
|
|||||||
|
/**
|
||||||
|
* @class
|
||||||
|
*/
|
||||||
OpenLayers.Control = Class.create();
|
OpenLayers.Control = Class.create();
|
||||||
OpenLayers.Control.prototype = {
|
OpenLayers.Control.prototype = {
|
||||||
// OpenLayers.Map
|
|
||||||
|
/** @type OpenLayers.Map */
|
||||||
map: null,
|
map: null,
|
||||||
|
|
||||||
// HTMLDivElement
|
/** @type DOMElement */
|
||||||
div: null,
|
div: null,
|
||||||
|
|
||||||
initialize: function () {},
|
/**
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
initialize: function () {
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @returns A reference to the DIV DOMElement containing the control
|
||||||
|
* @type DOMElement
|
||||||
|
*/
|
||||||
draw: function () {
|
draw: function () {
|
||||||
if (this.div == null) {
|
if (this.div == null) {
|
||||||
this.div = OpenLayers.Util.createDiv();
|
this.div = OpenLayers.Util.createDiv();
|
||||||
@@ -15,8 +27,13 @@ OpenLayers.Control.prototype = {
|
|||||||
return this.div;
|
return this.div;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
destroy: function () {
|
destroy: function () {
|
||||||
// eliminate circular references
|
// eliminate circular references
|
||||||
this.map = null;
|
this.map = null;
|
||||||
}
|
},
|
||||||
|
|
||||||
|
/** @type String */
|
||||||
|
CLASS_NAME: "OpenLayers.Control"
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user