Description
onAttach doesn't work reliably and it's not really needed, as the functionality can be moved to onBeforeRender, which also gives much more flexibility to what it's possible to do in the method.
Thus the onAttach method should be removed (made final actually, so that we don't fail silently).