From the monthly archives: April 2008
John Resig’s jQuery uses a standard technique of anonymous function closures to namespace its internal functionality. (function(){ // jQuery stuff goes here… })(); This is all well and good until you want to inline this code under some of your application code, as I did while working on Eventful’s MySpace application. Consider this example, written [...]