mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
removed unnecessary :Clone call
This commit is contained in:
parent
da85cbbac8
commit
bb6954b6b7
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ local function create_instance(class: string)
|
|||
end
|
||||
|
||||
return function(properties: { [any]: unknown }): Instance
|
||||
return apply(instance:Clone(), properties)
|
||||
return apply(instance, properties)
|
||||
end
|
||||
end; create_instance = memoize(create_instance) -- always return same constructor for given class
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue