I'm trying to to create a smooth mechanism for a common feature:
Are you sure? You'll lose your changes.
I tried to use onBeforeClose()
return false, but it didn't work,
and that feature is deprecated anyway.
This strategy allows you to implement preventClose()
on a view.