diff --git a/alarmdecoder/event/event.py b/alarmdecoder/event/event.py index 0086cbb..b8c09ba 100644 --- a/alarmdecoder/event/event.py +++ b/alarmdecoder/event/event.py @@ -65,6 +65,10 @@ class EventHandler(object): self._getfunctionlist().remove(func) return self + def clear(self): + del self._getfunctionlist()[:] + return self + def fire(self, *args, **kwargs): """Fire event and call all handler functions