Backbone.js is nearing five years old, and yet it remains my framework of choice for client-side MVC applications. Its light footprint and easy extensibility have allowed it to adapt to changing best practices over the years.
this as a major pain of the language. The
this and its many quirks and forms. We will lay out the four ways to set a function’s
this value, as well as discuss some common use cases and pitfalls.