Changeset 6443
- Timestamp:
- 03/06/08 00:22:18 (10 months ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Control/Panel.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Control/Panel.js
r6172 r6443 149 149 } 150 150 for (var i = 0; i < this.controls.length; i++) { 151 if (this.controls[i] == control) { 152 control.activate(); 153 } else { 151 if (this.controls[i] != control) { 154 152 if (this.controls[i].type != OpenLayers.Control.TYPE_TOGGLE) { 155 153 this.controls[i].deactivate(); … … 157 155 } 158 156 } 157 control.activate(); 159 158 }, 160 159
