Using “this” Responsibly | mod.js

Over the past few weeks, I’ve come across a number of libraries that have decided to manipulate the value of this in a callback function. Presumably, to provide additional functionality to the callback by way of methods of the this keyword. To offer a somewhat trivial example: Imagine if you only had access to “your-source.js”,…

Read at https://modjs.wordpress.com/2013/05/01/using-this-responsibly/