documentcloud/backbone — pull request #2035 by adriaanlabusc (2012-12-27 17:21:24+00:00)
Title: Increment this._pending for each change. Possibly fixes issue #2034 (if it is an issue)

All events model.set calls that cause a change to be added to the changes array are now added up
in the this._pending variable. This allows the original model.set that started a chain of sets (through
triggering events) to fire one 'change' event for each set that caused a change to be added to the 'changes' array.
This fixes issue #2034