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
106 stars 28 forks source link

Add test for custom unmapping via ko.viewmodel.toModel #41

Open aknuds1 opened 11 years ago

aknuds1 commented 11 years ago

I've added a test for the scenario where you piggyback on ko.viewmodel.fromModel in a custom mapping function and ko.viewmodel.toModel in a custom unmapping function. This scenario currently leads to infinite recursion in the unmapping function. See the issue I opened previously regarding this problem.

coderenaissance commented 11 years ago

responded on #40, thanks.