Added love.event.clearListeners.

This commit is contained in:
Alex Szpakowski
2015-12-12 14:19:37 -04:00
parent 44d4ce2c99
commit e5c0c49751
3 changed files with 11 additions and 2 deletions
+6
View File
@@ -93,5 +93,11 @@ function event.removeListener(func)
return success
end
function event.clearListeners()
for k in pairs(listeners) do
listeners[k] = nil
end
end
-- DO NOT REMOVE THE NEXT LINE. It is used to load this file as a C++ string.
--)luastring"--"