[Commits] r2643 - core/trunk/geoext/lib/GeoExt/widgets
commits at geoext.org
commits at geoext.org
Fri Apr 1 17:00:48 CEST 2011
Author: bartvde
Date: 2011-04-01 17:00:47 +0200 (Fri, 01 Apr 2011)
New Revision: 2643
Modified:
core/trunk/geoext/lib/GeoExt/widgets/LayerLegend.js
Log:
LayerLegend update can cause js error, r=ahocevar (closes #415)
Modified: core/trunk/geoext/lib/GeoExt/widgets/LayerLegend.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/widgets/LayerLegend.js 2011-03-31 20:40:21 UTC (rev 2642)
+++ core/trunk/geoext/lib/GeoExt/widgets/LayerLegend.js 2011-04-01 15:00:47 UTC (rev 2643)
@@ -97,9 +97,10 @@
*/
update: function() {
var title = this.getLayerTitle(this.layerRecord);
- if (this.items.get(0).text !== title) {
+ var item = this.items.get(0);
+ if (item instanceof Ext.form.Label && item.text !== title) {
// we need to update the title
- this.items.get(0).setText(title);
+ item.setText(title);
}
},
More information about the Commits
mailing list