off without function

Is there a way to call ‘off’ for an event without providing a function so as to remove all handles of the event (as in jQuery) ?

If not can that be provided ? this is useful when giving anonymous functions to ‘on’


I think that would be a huge composability hazard – if you’re simply removing all handlers because you can’t be bothered to save your function, you’re very likely to remove handlers registered by addons or other moudles, which you did not actually want to remove.