mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 21:41:37 +00:00
Add case in reconciler to handle LocalizationTable Contents
This commit is contained in:
parent
0be4e6921d
commit
eff4301027
1 changed files with 7 additions and 0 deletions
|
|
@ -60,6 +60,13 @@ local function makeInstanceMap()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function setProperty(instance, key, value)
|
local function setProperty(instance, key, value)
|
||||||
|
-- The 'Contents' property of LocalizationTable isn't directly exposed, but
|
||||||
|
-- has corresponding (deprecated) getters and setters.
|
||||||
|
if key == "Contents" and instance.ClassName == "LocalizationTable" then
|
||||||
|
instance:SetContents(value)
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local ok, err = pcall(function()
|
local ok, err = pcall(function()
|
||||||
if instance[key] ~= value then
|
if instance[key] ~= value then
|
||||||
instance[key] = value
|
instance[key] = value
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue