In the SO example, I could have called `scope.dere...
# tornadofx
e
In the SO example, I could have called
scope.deregister()
from the
onUndock
, but the scope would be garbage collected either way when there are no more references to the fragment.