documentcloud/backbone — pull request #1421 by tgriesser (2012-06-17 19:54:15+00:00)
Title: adding detach, for alternate view removal

Prompted by this question:
http://stackoverflow.com/questions/11073877/delegateevents-in-backbone-js/11074013#11074013

It can be confusing that just by calling `.remove()`, all bound events are lost from the view element, even when the cached $el still exists on the view, appearing to indicate that it should contains all previously bound events. jQuery (1.4+) provides `.detach()` for these cases where you may want to temporarily remove the view without losing bindings on the element.

If anything, it would be helpful to include in the documentation that calling `remove` will remove all delegated events as well.

An alternate approach could be to change `.destroy()` to be `.destroy([bool])`, where a true value indicates that jQuery data is to be maintained and calla `.detach` rather than `.destroy`