util.events: Fix comparison of event_name with nil instead of false (fixes #554)
authorMatthew Wild <mwild1@gmail.com>
Thu, 12 May 2016 17:45:30 +0000 (18:45 +0100)
committerMatthew Wild <mwild1@gmail.com>
Thu, 12 May 2016 17:45:30 +0000 (18:45 +0100)
util/events.lua

index 073d2a60fd84b9f317dbf8ace3863eb7cd1556dc..e2943e4497f75bdda61b50ca11914e623864e6a6 100644 (file)
@@ -131,7 +131,7 @@ local function new()
                        end
                end
                if #w == 0 then
-                       if event_name == nil then
+                       if event_name == false then
                                global_wrappers = nil;
                        else
                                wrappers[event_name] = nil;