Как вариант,

```coffee
switch true
  when !(@__events? && (name? || fn?)) then @__events = {}
  when name? && fn? then @__events[name]?.remove(fn)
  when name? && !fn? then @__events[name].empty()
  else cbs.remove(fn) for own _, cbs of @__events
````