cancel
Showing results for 
Search instead for 
Did you mean: 

How do I stop a forEachChild callback chain?

MrJob
Associate II

When I want to execute a certain callback after a certain widget has been pressed, I use the function forEachChild to reach the wanted callback. But during the execution of this callback, I remove the container from the screen to change the visual environment. The function forEachChild however keeps on calling the callback, even after every drawable has been removed from the root container.

How do I stop this callback chain?

0 REPLIES 0