BlueSpire/Durandal — pull request #498 by jbblanchet (2014-05-04 21:18:22+00:00)
Title: Rewrite observable.innerSetter

Reference BlueSpire/Durandal#496

Bug was, when replacing an array, the observable was updated (line 168) before the elements of the array were made observable (line 180). Since KnockOut updated the view as soon as we updated the observable, the link was broken for the elements of the array.

I'm not sure what the goal of peeking inside the observable at line 169 was. Everything seems to work just fine, but I didn't find any automated tests for that plugin, so please let me know if there was a specific reason for that code so we can find a workaround.

Also, I was trying to find a way to automate tests for cases like this. I haven't thought of a way yet besides building a dummy app, since I need to have a working view and viewmodel to test this complex scenario. If you have any idea, let me know.