Pass parent EventHook down to children

This commit is contained in:
jesopo 2018-09-27 12:16:30 +01:00
parent 8dc83e5aac
commit 6c63655a6e

View file

@ -202,7 +202,7 @@ class EventHook(object):
child_name_lower = child_name.lower()
if not child_name_lower in self._children:
self._children[child_name_lower] = EventHook(self.log,
child_name_lower)
child_name_lower, self)
return self._children[child_name_lower]
def remove_child(self, child_name):
child_name_lower = child_name.lower()