Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Highlighted portion of example illustrating how we deal with wholesale replacement of a complex object within an observable
if ((typeof obj == "object") && (obj !== null)) {
if (target.hasValueChanged()) {
return ko.mapping.toJS(obj);
}
return getChangesFromModel(obj);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.