To add a listener to a UI element in Seesaw you do this:
(listen ui-element :action (fn [_] (...)))
listen
attaches a listener that calls the provided function when :action
is triggered on `ui-element1. It also returns a function. If you execute that function it removes the listener that was added with the original call.
I've been prototyping UIs in the REPL using Seesaw, and I haven't kept the return values from listen
.
If I don't have the returned function, how can I remove listeners?