knockout.mapping
knockout.mapping copied to clipboard
Add normalize callback to normalize the update and create options.data
If some property of your model expects to receive some type of data, for example and Object, and it receives a String or Null, mapping fails.
I added the normalize callback to normalize the data before it passes to update and create callbacks.