0

Is there a @BeforeDestroy for the ViewModel which would be called when the VM is destroyed?

asked 2015-07-21 13:59:02 +0800

WilliamB gravatar image WilliamB
1609 1 6

Kinda like the @Init and @AfterCompose.

When someone leaves my View I need to do some cleanup, like removing the event listeners from the event queues.

I tried DesktopCleanup but it only triggers when the user leaves the application.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-07-21 16:20:11 +0800

WilliamB gravatar image WilliamB
1609 1 6

Is there a way to set an event listener onDetach on the View component?

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-07-21 13:59:02 +0800

Seen: 15 times

Last updated: Jul 21 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More