Though some of the concepts in this course are still relevant, overall this course does not reflect our current course standards or industry best practices.

Check out a free preview of the full Backbone.js (with Introduction to Testing) course:
The "DOM Events and Memory Management" Lesson is part of the full, Backbone.js (with Introduction to Testing) course featured in this preview video. Here's what you'd learn in this lesson:

The events hash in Backbone is similar to using jQuery's "on" method. Garbage collection happens automatically in JavaScript, but destroying views with the "remove" method can aid in memory allocation. Sam discusses why using the "listenTo" method when adding events is much better than using "on" for garbage collection.

Get Unlimited Access Now