Add case in reconciler to handle LocalizationTable Contents

This commit is contained in:
Lucien Greathouse
2019-01-08 18:30:09 -08:00
parent 0be4e6921d
commit eff4301027

View File

@@ -60,6 +60,13 @@ local function makeInstanceMap()
end
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()
if instance[key] ~= value then
instance[key] = value