Merge branch 'master' of github.com:HelloZeroNet/ZeroNet
This commit is contained in:
commit
6a409a000a
18 changed files with 790 additions and 130 deletions
src/util
|
@ -3,7 +3,7 @@
|
|||
class Event(list):
|
||||
def __call__(self, *args, **kwargs):
|
||||
for f in self[:]:
|
||||
if "once" in dir(f):
|
||||
if "once" in dir(f) and f in self:
|
||||
self.remove(f)
|
||||
f(*args, **kwargs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue