Assign handler to destroy event (such as page being unloaded)

Description

Assign handler to destroy event (such as page being unloaded)

Usage

1

Arguments

x

the object

...

Used to pass through handler, and action values. The handler is a function whose first argument is a list that contains components obj to return the object and action, holding the action value, and possibly others.

Value

a callback id, used with removeHandler

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.