mirror of
https://github.com/Kiritow/OpenComputerScripts.git
synced 2024-03-22 13:10:46 +08:00
Now clear event bus on destroyed
This commit is contained in:
parent
2c5bc2f649
commit
2065bb9892
|
@ -373,6 +373,8 @@ function DestroyEventBus(t)
|
||||||
for k,v in pairs(t.listeners) do
|
for k,v in pairs(t.listeners) do
|
||||||
RemoveEventListener(v)
|
RemoveEventListener(v)
|
||||||
end
|
end
|
||||||
|
t.listeners={}
|
||||||
|
t.events={}
|
||||||
end
|
end
|
||||||
|
|
||||||
function CreateEventBus()
|
function CreateEventBus()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user