1
0
Fork 0

Fix #956, cleanup canvas map listeners

This commit is contained in:
Thomas Geymayer 2013-01-16 23:57:08 +01:00
parent 9078b6ff36
commit 23c72fd53b

View file

@ -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);
}
###