change of heart. revert r1396

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1397 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-08-31 14:56:29 +00:00
parent 51c86b7b3c
commit 4b0d947f3e

View File

@@ -28,7 +28,6 @@ OpenLayers.Control.prototype = {
*/
initialize: function (options) {
Object.extend(this, options);
this.div = OpenLayers.Util.createDiv();
},
/**
@@ -56,6 +55,9 @@ OpenLayers.Control.prototype = {
* @type DOMElement
*/
draw: function (px) {
if (this.div == null) {
this.div = OpenLayers.Util.createDiv();
}
if (px != null) {
this.position = px.clone();
}