filter bugfix

This commit is contained in:
Manuel Simon Hirsig
2016-08-11 19:14:17 +02:00
parent 4ee99e43e8
commit dba5dcdf8d
8 changed files with 55 additions and 68 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ end
function public.event_listener(event, cb)
local listener_id = m.id()
m.listeners[listener_id] = { event=event, cb=cb, kill=function(...) if arg.n == 0 or arg[1] then m.kill_listener(listener_id) end end }
m.listeners[listener_id] = {event=event, cb=cb, kill=function(...) if arg.n == 0 or arg[1] then m.kill_listener(listener_id) end end}
m.event_frame:RegisterEvent(event)
return listener_id
end
@@ -78,7 +78,7 @@ end
function public.thread(k, ...)
local thread_id = m.id()
m.threads[thread_id] = { k = aux._(k, unpack(arg)) }
m.threads[thread_id] = {k = aux._(k, unpack(arg))}
return thread_id
end