Fix #956, cleanup canvas map listeners
This commit is contained in:
parent
9078b6ff36
commit
23c72fd53b
1 changed files with 3 additions and 1 deletions
|
@ -432,7 +432,9 @@ LayeredMap.updateState = func {
|
|||
# print("Cleaning up listeners");
|
||||
foreach(var l; me.listeners)
|
||||
removelistener(l);
|
||||
|
||||
# TODO check why me.listeners = []; doesn't work. Maybe this is a Nasal bug
|
||||
# and the old vector is somehow used again.
|
||||
setsize(me.listeners, 0);
|
||||
}
|
||||
|
||||
###
|
||||
|
|
Loading…
Add table
Reference in a new issue