Ticket #726: Panel.js.diff
| File Panel.js.diff, 0.8 kB (added by openlayers, 1 year ago) |
|---|
-
/mnt/d/eclipse/workspace/openlayers/lib/OpenLayers/Control/Panel.js
old new 103 103 if (control.type == OpenLayers.Control.TYPE_BUTTON) { 104 104 control.trigger(); 105 105 return; 106 } 106 } 107 if (control.type == OpenLayers.Control.TYPE_TOGGLE) { 108 if (control.active) { 109 control.deactivate(); 110 } else { 111 control.activate(); 112 } 113 return; 114 } 107 115 for (var i = 0; i < this.controls.length; i++) { 108 116 if (this.controls[i] == control) { 109 117 control.activate();
