In the .getState() function, there's a call tothis.__link(this.__parent.getState()) - likewise, in link()'s default definition, if child isn't defined (like in the call earlier), yet the parent object will be an object and the this parameter is still bound to the child, which does have the .__parent parameter, which then takes this code path.
Because we're only supplying the parent's .__state property to the child's .__link(), it would expect it's name to exist in the state of the parent.
How should this work / how should I be doing this?
In the
.getState()
function, there's a call tothis.__link(this.__parent.getState())
- likewise, inlink()
's default definition, ifchild
isn't defined (like in the call earlier), yet the parent object will be an object and thethis
parameter is still bound to the child, which does have the.__parent
parameter, which then takes this code path.Because we're only supplying the parent's
.__state
property to the child's.__link()
, it would expect it's name to exist in the state of the parent.How should this work / how should I be doing this?