From adee1fb217a2876f2532d2769bb94c7fe2b34191 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Sat, 31 Mar 2007 20:09:13 +0000 Subject: [PATCH] Patch from andreas to fix silly typo in Control/Panel. (I need to start naming my external maps something other than 'map' so I can catch these.) Closes #612 . git-svn-id: http://svn.openlayers.org/trunk/openlayers@2948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- doc/authors.txt | 1 + lib/OpenLayers/Control/Panel.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/authors.txt b/doc/authors.txt index f5babe54be..0589919e32 100644 --- a/doc/authors.txt +++ b/doc/authors.txt @@ -7,6 +7,7 @@ Christian López Espínola John Frank Sean Gilles Pierre Giraud +Andreas Hocevar Philip Lindsay Corey Puffault Tim Schaub diff --git a/lib/OpenLayers/Control/Panel.js b/lib/OpenLayers/Control/Panel.js index 760100b569..a37e24aa41 100644 --- a/lib/OpenLayers/Control/Panel.js +++ b/lib/OpenLayers/Control/Panel.js @@ -122,7 +122,7 @@ OpenLayers.Control.Panel.prototype = this.controls = this.controls.concat(controls); if (this.map) { // map.addControl() has already been called on the panel for (var i = 0; i < controls.length; i++) { - map.addControl(controls[i]); + this.map.addControl(controls[i]); controls[i].deactivate(); } this.redraw();