mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
two-way-sync: Track Parent property for value objects
This commit is contained in:
parent
a3e0d42e86
commit
5d9bc4473c
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue