Browse files

don't try to update properties if there is update callback

  • Loading branch information...
1 parent 23fb458 commit 1a0e69f958b845af166b53ccea669b4f6fbfbb64 Vladimir G. Sekissov committed Jun 27, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 knockout.mapping.js
View
2 knockout.mapping.js
@@ -372,6 +372,8 @@
visitedObjects.save(rootObject, mappedRootObject);
+ if (hasUpdateCallback()) return mappedRootObject;
+
// For non-atomic types, visit all properties and update recursively
visitPropertiesOrArrayEntries(rootObject, function (indexer) {
var fullPropertyName = parentPropertyName.length ? parentPropertyName + "." + indexer : indexer;

0 comments on commit 1a0e69f

Please sign in to comment.