Merge pull request #14 from bigtan/patch-1

Update eventEngine.py
This commit is contained in:
vn.py 2015-11-01 09:45:17 +08:00
commit 7d147515d6

View File

@ -143,7 +143,7 @@ class EventEngine:
"""注销事件处理函数监听"""
# 尝试获取该事件类型对应的处理函数列表,若无则忽略该次注销请求
try:
handlerList = self.handlers[type_]
handlerList = self.__handlers[type_]
# 如果该函数存在于列表中,则移除
if handler in handlerList:
@ -193,4 +193,4 @@ def test():
# 直接运行脚本可以进行测试
if __name__ == '__main__':
test()
test()