openlayers/openlayers — pull request #195 by ahocevar (2012-02-01 23:01:04+00:00)
Title: No additional events registered on the LayerSwitcher.

With the buttonclick event, we can also handle clicks on layer names and checkboxes/radiobuttons when they get the olButton class. To make this work on iOS, we have to add a check in buttonclick.js to handle the case where the event occurred on a text element (nodeType === 3).

A nice side effect of this change is that double-clicking on a layer name or checkbox/radiobutton does not cause the map to zoom in any more.