Joao Carlos


Automatic binding of this in Backbone.js

Having to bind the value of this manually in Backbone.js is not only tedious but can also result in frustration after forgetting to add a function name to the list.

And that's why many people extend Backbone.js with a autoBind function that automatically binds all functions. However, if you always want the auto bind functionality, why not take it a step further and have this behavior by default?

Continue reading »