ipython/ipython — pull request #6438 by SylvainCorlay (2014-09-08 19:56:28+00:00)
Title: Destroy backbone model on comm:close

Trigger the `destroy` event in backbone.js before deleting the model.

Some other objects may still hold references to the model because they have registered to its events. In the implementation of backbone models, one can register an `on('destroy')` handler.