Cleaning up markup events.