diff --git a/lib/OpenLayers/Control.js b/lib/OpenLayers/Control.js index 75cb6dbfe2..f4e4f1edfd 100644 --- a/lib/OpenLayers/Control.js +++ b/lib/OpenLayers/Control.js @@ -28,6 +28,7 @@ OpenLayers.Control.prototype = { */ initialize: function (options) { Object.extend(this, options); + this.div = OpenLayers.Util.createDiv(); }, /** @@ -55,9 +56,6 @@ OpenLayers.Control.prototype = { * @type DOMElement */ draw: function (px) { - if (this.div == null) { - this.div = OpenLayers.Util.createDiv(); - } if (px != null) { this.position = px.clone(); }