PDA

View Full Version : FireEvent in Controllers



bstras21
30 Dec 2011, 12:27 PM
I want to fire an event from one controller and listen to it in another? I found one example in the forums but that was using getBubbleTarget and I could not find that in the docs, here is the thread:

http://www.sencha.com/forum/showthread.php?167234-Want-controllerB-to-listen-to-custom-event-fired-from-controllerA&highlight=fireEvent

controllerA:
-looking for this code?

controllerB:


init: function() {
this.on('popup', function(){
console.log('Popup was fired');
})
}

estesbubba
30 Dec 2011, 12:38 PM
I just updated my thread with an easier solution.

bstras21
30 Dec 2011, 12:42 PM
Thanks, I was just missing the application!