PDA

View Full Version : controller not responding to dynamically added component



jeanluca
15 Oct 2012, 12:07 AM
Hi

In one of my controllers I'm listening for a tap event on one of my components.



refs: {
mycomp: 'mycomp'
},
control: {
mycomp: {
tap: 'onMyCompTap'
}
}

However, this component is not used at the beginning, but at some point dynamically created and added to a panel. Does this controller mechanism work in this case or should I do the event binding myself ?

Cheers

UPDATE: solved it, it was a problem with my component :(

mitchellsimoens
16 Oct 2012, 12:22 PM
Maybe you can post the problem and solution in case someone else is running into the same issue?