mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 22:25:26 +00:00
two-way-sync: Track Parent property for value objects
This commit is contained in:
@@ -133,6 +133,10 @@ function InstanceMap:__connectSignals(instance)
|
|||||||
instance:GetPropertyChangedSignal("Value"):Connect(function()
|
instance:GetPropertyChangedSignal("Value"):Connect(function()
|
||||||
self:__maybeFireInstanceChanged(instance, "Value")
|
self:__maybeFireInstanceChanged(instance, "Value")
|
||||||
end),
|
end),
|
||||||
|
|
||||||
|
instance:GetPropertyChangedSignal("Parent"):Connect(function()
|
||||||
|
self:__maybeFireInstanceChanged(instance, "Parent")
|
||||||
|
end),
|
||||||
}
|
}
|
||||||
|
|
||||||
self.instancesToSignal[instance] = signals
|
self.instancesToSignal[instance] = signals
|
||||||
|
|||||||
Reference in New Issue
Block a user