Update eventEngine.py

fix a minor bug
This commit is contained in:
Bigtan 2015-10-24 23:33:32 +08:00
parent d5b16a6a87
commit 61e089f27c

View File

@ -143,7 +143,7 @@ class EventEngine:
"""注销事件处理函数监听"""
# 尝试获取该事件类型对应的处理函数列表,若无则忽略该次注销请求
try:
handlerList = self.handlers[type_]
handlerList = self.__handlers[type_]
# 如果该函数存在于列表中,则移除
if handler in handlerList: