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
|
||||
RemoveEventListener(v)
|
||||
end
|
||||
t.listeners={}
|
||||
t.events={}
|
||||
end
|
||||
|
||||
function CreateEventBus()
|
||||
|
|
Loading…
Reference in New Issue
Block a user