jupiterjs/canjs — pull request #127 by cohuman (2012-10-27 01:06:39+00:00)
Title: .attr() on an empty can.Model.List should only trigger one change event when an array is passed in

Because _updateAttrs was using push, if you .attr()'ed a list with an array with 5 objects, 5 change events would get triggered. This meant our ejs template would re-render 5 times.

We modified the code to use splice instead. There's a test that captures the behavior.

Thanks!
-Amy & Michael