mirror of
https://github.com/solero/houdini.git
synced 2024-11-28 08:27:18 +00:00
Subtract 1 from index_of_before in handler ordering logic
This commit is contained in:
parent
44bf627dc5
commit
fdd290e868
@ -166,7 +166,7 @@ class _ListenerManager(_AbstractManager):
|
||||
if listener_object.before is not None:
|
||||
index_of_before = self[listener_object.packet].index(listener_object.before)
|
||||
old_index = self[listener_object.packet].index(listener_object)
|
||||
self[listener_object.packet].insert(index_of_before, self[listener_object.packet].pop(old_index))
|
||||
self[listener_object.packet].insert(index_of_before - 1, self[listener_object.packet].pop(old_index))
|
||||
if listener_object.after is not None:
|
||||
index_of_after = self[listener_object.packet].index(listener_object.after)
|
||||
old_index = self[listener_object.packet].index(listener_object)
|
||||
|
Loading…
Reference in New Issue
Block a user