Resolves #11. Revert to passing an element as the first argument to the lifecycle callbacks.