Provides method for copying events from one element to another. It also provides a cloneWithEvents method that will clone the element along with the events.