documentcloud/backbone — pull request #1461 by braddunbar (2012-06-27 13:58:31+00:00)
Title: Add View#dispose.

I've taken another shot at adding a method for cleaning up view references (see #1353), using `dispose` instead of `destroy` due to possible confusion with `model.destroy`. I don't feel particularly strongly about the naming choice though, so please suggest others you think fit better.

The consensus seems to be that `dispose` should remove `model` listeners, remove `collection` listeners, and undelegate any DOM handlers with `undelegateEvents`. This seems like it's sufficiently flexible while still providing useful functionality.