Fix Event.dispatch to return True if execution is to proceed

This commit is contained in:
Vgr E.Barry 2015-06-14 16:06:36 -04:00
parent 28dc0a8e14
commit 81e3e688ab

View File

@ -24,7 +24,7 @@ class Event:
def dispatch(self, *args): def dispatch(self, *args):
if self.name not in EVENT_CALLBACKS: if self.name not in EVENT_CALLBACKS:
return return True
for item in list(EVENT_CALLBACKS[self.name]): for item in list(EVENT_CALLBACKS[self.name]):
item[1](self, *args) item[1](self, *args)