Browsing the blog archives for December, 2009

Event scoping with jQuery in OOP: Controlling the value of ‘this’

One of the things I have always liked about jQuery since I first started using it is how easy it is to bind events to elements, and have easy access to the bound elements via “this”. However, when you start programming object oriented JavaScript, you lose access to the object’s “this” unless you use closure: […]

December 30, 2009 in JavaScript