mirror of
https://github.com/evennia/evennia.git
synced 2026-04-06 16:44:08 +02:00
Added weak reverse references from all handlers.
This commit is contained in:
parent
4e3789cede
commit
0030530021
6 changed files with 20 additions and 22 deletions
|
|
@ -1052,7 +1052,7 @@ class LazyLoadHandler(object):
|
|||
Initialize handler as cls(obj, *args)
|
||||
"""
|
||||
obj = _GA(self, "obj")()
|
||||
instance = _GA(self, "cls")(obj, *_GA(self, "args"))
|
||||
instance = _GA(self, "cls")(weakref.proxy(obj), *_GA(self, "args"))
|
||||
_SA(obj, _GA(self, "name"), instance)
|
||||
return instance
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue