SteveSanderson/knockout.mapping — Issue #55: Attach a single Js Object back into the parent causes browser crash
Author: jonswaino
Created: 2012-02-15 11:21:12+00:00
State: open

I'm creating a list of items which are mapped using the mapping plugin. However, I want to be able to 'attach' or copy a single object back to the mapped object inside an observableArray. Effectively, it is used where there is a list of items, and an edit dialog is shown for the item. When clicking 'ok' the data should map back to the source.

I have a *very* simple jsFiddle, but this is crashing the browser:
http://jsfiddle.net/5J9aL/8

I thought maybe using the mapping options to map the actual object inside the array might fix the problem, but no luck:
jsfiddle.net/RJqdD/1