Diff

util/events.lua @ 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
parent 7039:138241cc1b3a
child 8382:e5d00bf4a4d5
child 8758:c380a22d52d5
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;