# HG changeset patch # User Matthew Wild # Date 1292713701 0 # Node ID fb1d2e5a2fc9f1dcf1999875a99193683002673f # Parent bd1845f9d5a47fef78a02b97f68ec717cb7d3c56# Parent bc4f67a0658dc77ea70d6c649a61f12a5fa0b67a Merge with Florob diff -r bd1845f9d5a4 -r fb1d2e5a2fc9 util/events.lua --- a/util/events.lua Sat Dec 18 21:35:42 2010 +0100 +++ b/util/events.lua Sat Dec 18 23:08:21 2010 +0000 @@ -45,6 +45,9 @@ if map then map[handler] = nil; handlers[event] = nil; + if next(map) == nil then + event_map[event] = nil; + end end end; local function add_handlers(handlers)