double-events fix
This commit is contained in:
parent
1a4c70d21a
commit
cbdc151373
@ -131,7 +131,9 @@ events = {
|
||||
}
|
||||
|
||||
function events.on(event, func)
|
||||
events.handlers[event] = events.handlers[event] or {}
|
||||
-- why an array? length is always = 1
|
||||
-- FIXME: temporary fixed
|
||||
events.handlers[event] = {} -- events.handlers[event] or {}
|
||||
table.insert(events.handlers[event], func)
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user