layer node updates text when this may be unwanted
|Reported by:||bartvde||Owned by:||tschaub|
This is a sequel to ticket:96
Imagine the following use case: somebody creates a GeoExt.tree.LayerNode and provides a value for text in the constructor. This means the node will not take the layer.name as text.
However, when somebody changes the visibility of the layer node, a changelayer event is fired, and onStoreUpdate is run in LayerNode.js, so the text is updated with the layer name, but this is not what the developer will want.
How do we deal with this? In onStoreUpdate we currently don't know that the event was originated by a visibility change, and not a layer name change.
Should we not listen for layer name changes if the user provided a text in the constructor?
Change History (20)
comment:1 Changed 8 years ago by bartvde
- Component changed from data to widgets.tree
- Owner set to ahocevar
Changed 8 years ago by bartvde
Changed 8 years ago by ahocevar
comment:6 follow-up: ↓ 7 Changed 8 years ago by tschaub
- Resolution fixed deleted
- State changed from Commit to Needs Discussion
- Status changed from closed to reopened
comment:14 Changed 8 years ago by tschaub
- Owner changed from ahocevar to tschaub
- Status changed from reopened to new