documentcloud/backbone — pull request #739 by braddunbar (2011-11-10 14:51:10+00:00)
Title: Implement clear/unset in terms of set

After working on #736, I realized that `unset` and `clear` are also subject to mistakenly triggering `change` multiple times. Implementing `unset` and `clear` in terms of `set` re-uses the same code and thus benefits in the same way (not to mention a nice reduction in size).

A small change to the unit test I submitted with #736 also snuck in to this request. It's not directly related, but is a good change nonetheless.