author | Matthew Wild <mwild1@gmail.com> |
Tue, 28 Apr 2015 14:19:28 +0100 | |
changeset 6644 | b44ebfe81c73 |
parent 6643 | 859e9af53aa1 |
child 6645 | 113d321976b6 |
child 6654 | deaa3d66dc2c |
util/events.lua | file | annotate | diff | comparison | revisions |
--- a/util/events.lua Tue Apr 28 14:18:43 2015 +0100 +++ b/util/events.lua Tue Apr 28 14:19:28 2015 +0100 @@ -93,7 +93,7 @@ end local function add_wrapper(event_name, wrapper) local w; - if event_name == nil then + if event_name == false then w = global_wrappers; if not w then w = {}; @@ -110,7 +110,7 @@ end local function remove_wrapper(event_name, wrapper) local w; - if event_name == nil then + if event_name == false then w = global_wrappers; else w = wrappers[event_name];