propagate callback to allow stacked decorators
This commit is contained in:
parent
15801426b0
commit
ee7befc4ab
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ class CallbacksHolder:
|
||||||
if key not in self._callbacks:
|
if key not in self._callbacks:
|
||||||
self._callbacks[key] = []
|
self._callbacks[key] = []
|
||||||
self._callbacks[key].append(callback)
|
self._callbacks[key].append(callback)
|
||||||
|
return callback
|
||||||
|
|
||||||
def trigger(self, key:Any) -> List[Callable]:
|
def trigger(self, key:Any) -> List[Callable]:
|
||||||
if key not in self._callbacks:
|
if key not in self._callbacks:
|
||||||
|
|
Loading…
Reference in a new issue