Skip to content

Instantly share code, notes, and snippets.

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