Use generalized iteration everywhere

Closes #55
This commit is contained in:
centauri 2025-09-02 03:12:19 +01:00
parent a469094328
commit 9ace23470f
4 changed files with 7 additions and 7 deletions

View file

@ -133,8 +133,8 @@ local function apply<T>(instance: T & Instance, properties: { [unknown]: unknown
;(instance :: any)[event_name]:Connect(event_listener)
end
for _, queued in next, actions do
for _, callback in next, queued do
for _, queued in actions do
for _, callback in queued do
callback(instance)
end
end
@ -149,7 +149,7 @@ local function apply<T>(instance: T & Instance, properties: { [unknown]: unknown
end
table.clear(events)
for _, queued in next, actions do table.clear(queued) end
for _, queued in actions do table.clear(queued) end
caches.parent = nil
if flags.strict then table.clear(nested_debug) end
table.clear(nested_stack)