mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Added love.event.clearListeners.
This commit is contained in:
@@ -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"--"
|
||||
|
||||
Reference in New Issue
Block a user