From 3b7585be24bec60f5ef9cbc6122ce3c560e4b007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 15 Feb 2012 16:06:06 +0100 Subject: [PATCH] avoid useless deref --- lib/OpenLayers/Control/Panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Control/Panel.js b/lib/OpenLayers/Control/Panel.js index c1760f03c0..7a936b6ff1 100644 --- a/lib/OpenLayers/Control/Panel.js +++ b/lib/OpenLayers/Control/Panel.js @@ -253,7 +253,7 @@ OpenLayers.Control.Panel = OpenLayers.Class(OpenLayers.Control, { if (control.title != "") { element.title = control.title; } - controls[i].panel_div = element; + control.panel_div = element; } if (this.map) { // map.addControl() has already been called on the panel