PDA

View Full Version : view listener events



ttbgwt
2 Jun 2012, 8:34 AM
I have a view and inside of it I have a component, and the view listens for a custom event that gets fired by the component (see code below)



initComponent: function () {


var me = this;


me.filter = Ext.create('XYZ.view.Filter', {
listeners: {
scope: me,
performFilter: me.performFilterHandler
}
});


The issue I have is that if I have two copies of the view (A & B ), then if view A's child component fires the customEvent, then both views A & B respond to the event that was raised. I only want view A to respond to it's child component's customEvent, and not the customEvent fired from view B's child component.

mitchellsimoens
7 Jun 2012, 1:11 PM
What would fire the event on the child? Something is being shared.