Legacy docs (v1–v6)
These docs are for an old release. View the v7 docs
edit doc view .md

eventDestroy

Called before an event’s element is removed from the DOM.

function( info ) { }

info is a plain object that contains the following properties:

event

The associated Event Object.

el

The HTML element that is being destroyed.

isMirror

true if the element being rendered is a “mirror” from a user drag, resize, or selection (see selectMirror). false otherwise.

view

The current View Object.

This callback gets called once for every event element. It is a great way to tear down any plugins you might have applied in eventRender.