This occurs in nested items.
The code can be seen here.
http://jsfiddle.net/PxULV/3/
Thank you in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want the mapping plugin to work correctly you should try to ensure that the collections you are mapping are created by the mapping plugin in the first instance. When the mapping plugin runs it creates special mappedObservableArrays that it can then subsequently update.
You were also specifying the fromJSON method without any mapping information. The plugin therefore just created anonymous objects for the persons/children collections. It wasn’t instructed to create Person objects.
I’ve got a working example here.
http://jsfiddle.net/madcapnmckay/Nje3S/
Hope this helps.