Added domDetached lifecycle callback.