From 4b0d947f3e8d1721f8674a2299764d458a1c7d21 Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 31 Aug 2006 14:56:29 +0000 Subject: [PATCH] change of heart. revert r1396 git-svn-id: http://svn.openlayers.org/trunk/openlayers@1397 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Control.js b/lib/OpenLayers/Control.js index f4e4f1edfd..75cb6dbfe2 100644 --- a/lib/OpenLayers/Control.js +++ b/lib/OpenLayers/Control.js @@ -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(); }