SteveSanderson/knockout.mapping — pull request #123 by lisandropuzzolo (2012-12-13 16:57:16+00:00)
Title: Temporary fix for consecuent ko.mapping.fromJS calls

If you make consecuent calls to ko.mapping.fromJS(), in some cases the computables involved on the viewmodels are not evaluated correctly.
This behaviour is noticeable if you use Validation plugin.

I made this fix, so you can call ko.mapping.evaluateDependentObservables() between each ko.mapping.fromJS(...) call.

================================

ko.mapping.fromJS(....); // mapping the first viewmodel
ko.mapping.evaluateDependentObservables();
ko.mapping.fromJS(....); // mapping the second viewmodel

// now both viewmodels are working correctly, specially those using validation plugin.

================================