PDA

View Full Version : Adding and removing handlers - If there are multiple for a single event what do I do?



ALEITZ
21 Mar 2011, 9:16 AM
Hi,
I want to dynamically add/remove listeners to my JsonStore so I can handle change events from multiple instances of my EditForm class.

I know I can add multiple listeners for the same event (one for each instance of my form) but how do I delete a specific listener? (scenario: I have a EditFormPanel class which can be instantiated more than once. Each instance needs to listen to the store for change it's UI (enable/disabled) fields based on
changes to the record in the jsonstore it's displaying.) There's no API to delete a single listener.

Thanks, Andy