Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
backbone.dispose.js

README.md

Backbone Dispose

A small Backbone extensions that allows to dispose a view, therefore to release used resources. Useful when you have a view that bound to some events of a model and you want to remove this view and unbind it from the model.

If a view has a subviews they will be disposed automatically if a parent parameter pointing to the parent view was passed:

new SubView({collection: collection, parent: this});
Something went wrong with that request. Please try again.