Full threadwldlyinaccurate·jQuery does it right: (function( window, undefined ) { // ... })( window );View on HN