Files
openlayers/js/OpenLayers/Control.js
Schuyler Erle 6810d70bdd Importing OpenLayers "newAPI" branch.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 19:35:22 +00:00

23 lines
432 B
JavaScript

OpenLayers.Control = Class.create();
OpenLayers.Control.prototype = {
// OpenLayers.Map
map: null,
// HTMLDivElement
div: null,
initialize: function () {},
draw: function () {
if (this.div == null) {
this.div = OpenLayers.Util.createDiv();
}
return this.div;
},
destroy: function () {
// eliminate circular references
this.map = null;
}
};