See line 487. Callback gets attached to a workspace where it actually is invoked as a callback that can return itself or false. The workspace involved and this list are specifically designed to work with one another. Agreed the code is a bit strange, but it does work and solve a thorny problem.