Couldn’t find any documentation on this on the Knockout site, other than the knockout mapping plug in exposes it.
Couldn’t find any documentation on this on the Knockout site, other than the knockout
Share
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.
sigh – as soon as you post it – you find the answer. Ironically via the knockout site : http://knockoutjs.com/documentation/observableArrays.html
and
http://knockoutjs.com/documentation/plugins-mapping.html
So in brief:
mappedRemove and mappedRemoveAll removes an element in the same way that remove does, but allows you to do operations on the key.
mappedDestroy and mappedDestroyAll is there as a convenience for Ruby developers and adds _destroy to the object. No idea why – I’m not a Ruby developer.