mirror of
https://github.com/centau/vide.git
synced 2026-08-21 15:41:38 +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
|
end
|
||||||
|
|
||||||
return function(properties: { [any]: unknown }): Instance
|
return function(properties: { [any]: unknown }): Instance
|
||||||
return apply(instance:Clone(), properties)
|
return apply(instance, properties)
|
||||||
end
|
end
|
||||||
end; create_instance = memoize(create_instance) -- always return same constructor for given class
|
end; create_instance = memoize(create_instance) -- always return same constructor for given class
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue