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
This commit is contained in:
crschmidt
2007-03-31 20:09:13 +00:00
parent 474064b4e5
commit adee1fb217
2 changed files with 2 additions and 1 deletions

View File

@@ -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();