geoext/geoext — pull request #56 by mpriour (2012-09-18 23:47:01+00:00)
Title: Legend item code fails when a layer with name:0 is used

The `WMSLegend` and `LayerLegend` components both use an unsafe method to find the correct child component to modify on update. This is problem is only seen when using layer's with numeric names (ex: ArcGIS Server WMS layers), especially if a layer with a name of '0' is used.

Modified code to use more explicit methods which prevent this issue