Permalink
Browse files

Better explanation of the utility classes based on feedback from Pete…

…r Cooper.
  • Loading branch information...
croaky committed Dec 4, 2011
1 parent 20b6174 commit 1429346fc558ca34a45f9527e8f0126af013bb0a
Showing with 7 additions and 2 deletions.
  1. +7 −2 README.md
View
@@ -1,10 +1,15 @@
-Helper and utility classes that fill out Backbone for serious development.
+There's no built-in garbage collection for Backbone’s event bindings, and
+forgetting to unbind can cause bugs and memory leaks.
+
+Backbone Support currently provides two utility classes, SwappingRouter and CompositeView,
+that introduce a `leave()` function, which unbinds and cleans up the view.
+They should be used where views are instantiated (in Router instances and in composite views).
Inspired by our projects and the Backbone.js on Rails book:
http://workshops.thoughtbot.com/backbone-js-on-rails
The book contains complete instructions and in-depth coverage of the internals
-of CompositeView and Swappingrouter, and an example application that shows
+of CompositeView and SwappingRouter, and an example application that shows
their usage.
### SwappingRouter

0 comments on commit 1429346

Please sign in to comment.