mirror of
https://github.com/solero/houdini.git
synced 2024-11-22 05:27:23 +00:00
Fix incorrect handler ordering when before
keyword is used
This commit is contained in:
parent
bd4a6ad24a
commit
77a5e1ea23
@ -170,7 +170,7 @@ class _ListenerManager(_AbstractManager):
|
|||||||
if listener_object.before in self[listener_object.packet]:
|
if listener_object.before in self[listener_object.packet]:
|
||||||
index_of_before = self[listener_object.packet].index(listener_object.before)
|
index_of_before = self[listener_object.packet].index(listener_object.before)
|
||||||
old_index = self[listener_object.packet].index(listener_object)
|
old_index = self[listener_object.packet].index(listener_object)
|
||||||
self[listener_object.packet].insert(index_of_before - 1, self[listener_object.packet].pop(old_index))
|
self[listener_object.packet].insert(index_of_before, self[listener_object.packet].pop(old_index))
|
||||||
if listener_object.after in self[listener_object.packet]:
|
if listener_object.after in self[listener_object.packet]:
|
||||||
index_of_after = self[listener_object.packet].index(listener_object.after)
|
index_of_after = self[listener_object.packet].index(listener_object.after)
|
||||||
old_index = self[listener_object.packet].index(listener_object)
|
old_index = self[listener_object.packet].index(listener_object)
|
||||||
|
Loading…
Reference in New Issue
Block a user