Changeset

7424:ba83ff7d9bd7

util.events: Fix comparison of event_name with nil instead of false (fixes #554)
author Matthew Wild <mwild1@gmail.com>
date Thu, 12 May 2016 18:45:30 +0100
parents 7421:d6f12056afda
children 7425:0bb98138dacf 7428:f791651ee334
files util/events.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/events.lua	Wed May 04 15:31:32 2016 +0200
+++ b/util/events.lua	Thu May 12 18:45:30 2016 +0100
@@ -131,7 +131,7 @@
 			end
 		end
 		if #w == 0 then
-			if event_name == nil then
+			if event_name == false then
 				global_wrappers = nil;
 			else
 				wrappers[event_name] = nil;