Skip to content

Commit

Permalink
SEAM-26 Implemented inner scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaGobble committed Aug 1, 2024
1 parent 0a2755f commit 0bd45a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Components/Scope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ function Scope:__call(ScopedObjects)
end
end

function selfClass:InnerScope(...)
local NewScope = Scope(...)
self.Janitor:Add(NewScope)
return NewScope
end

function selfClass:Destroy()
self.Janitor:Destroy()
self.Janitor = nil
Expand Down

0 comments on commit 0bd45a7

Please sign in to comment.