coderenaissance / knockout.viewmodel

The knockout viewmodel plugin is the fastest, smallest, cleanest, most flexible way to create a knockout viewmodel.
http://coderenaissance.github.com/knockout.viewmodel
105 stars 27 forks source link

Refactor id option to have array child id specified off of array #21

Closed coderenaissance closed 11 years ago

coderenaissance commented 11 years ago

specifying ids for objects has issues... this was only meant for objects in arrays anyway... need something like this:

options = { ArrayUpdateID:{ "{root}.items":"id" } }

this will allow the id to be specified as part of the array and make the code more robust