Quirks Mode, IE7 Mode, IE8 Mode, and IE9 Mode (All Versions)

ondetach of type Function

Occurs before a behavior is detached from an element.

This event provides an opportunity for a dynamically attached behavior to stop receiving notifications from the page. Any behavior that attaches with PUBLIC:ATTACH will automatically stop receiving notifications when the behavior is detached.

This event is specific to HTC and element behaviors.