OpenLayers OpenLayers

Ticket #726: Panel.js.3.diff

File Panel.js.3.diff, 483 bytes (added by openlayers, 1 year ago)

Patch to correct the previous patch

  • Panel.js

    old new  
    115115        for (var i = 0; i < this.controls.length; i++) { 
    116116            if (this.controls[i] == control) { 
    117117                control.activate(); 
    118             } else
     118            } else if (control.type != OpenLayers.Control.TYPE_TOGGLE)
    119119                this.controls[i].deactivate(); 
    120120            } 
    121121        }