documentcloud/backbone — pull request #671 by theluk (2011-10-14 16:59:46+00:00)
Title: addMany Option & Event

Hi there,

Instead of just having the "add" event and the "reset" event, it is quite necessary to have also an "addMany" event.

In any App you listen to event changes. If reset, render it all, if add, render just the added. BUT, what if you reset with 100 items, and append then 100 items. Instead of 100 times an "add" event, you now have just one "addMany" event.

usage: Model.fetch({add:true, addMany:true});
Will cause "trigger("addMany, addedModelsArray, sender)"