I can remove all events from a group of elements using $('ul.links a').off()
.
How can I restore all removed events?
I would prefer not to use named functions when originally applying the events, and then individually adding those named functions back with on()
. Maybe before applying off()
, I could save all events in a data()
variable?