You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2021. It is now read-only.
Maybe I'm missing something, but currently there doesn't seem to be a clean way to do the following for a has-one relationship:
Listen for the change of a related model
In the event handler for the change, access the new value.
For example, assume Foo has-one Bar. You can listen for a change in Foo's Bar property using foo.on('change:bar_id', handler). But in the handler, you can't currently use foo.bar() to access the new property. This is because in One.replace, the code is: