knockout.mapping icon indicating copy to clipboard operation
knockout.mapping copied to clipboard

Updating a model with null children values breaks the bindings

Open lisandropuzzolo opened this issue 12 years ago • 0 comments

Updating with a null value a model like this:

model = ko.mapping.fromJS({ person:{ name: 'john'
} });

updating it with {person: null} will break the bingings: http://jsfiddle.net/vJhj8/14/ ¿Is this the expected behaviour?

Here is another fiddle in wich you can see that when updating the model with a null value, the "create" callback is executed instead of "update" callback: http://jsfiddle.net/JKw6f/

lisandropuzzolo avatar Aug 10 '12 21:08 lisandropuzzolo