mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
removeHook -> remHook
This commit is contained in:
parent
4a88885e83
commit
52234f9d9a
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ def addHook(hook, func):
|
|||
if func not in _hooks[hook]:
|
||||
_hooks[hook].append(func)
|
||||
|
||||
def removeHook(hook, func):
|
||||
def remHook(hook, func):
|
||||
"Remove a function if is on hook."
|
||||
hook = _hooks.get(hook, [])
|
||||
if func in hook:
|
||||
|
|
Loading…
Reference in a new issue