News for hackers. Stuff that matters.
Re:Google Analytics unblocks the Web w/ Async support by rykov on Wednesday December 02, 2009 @02:27PM (#972681)
This works even cooler when you want to minify your code:

MyLongClassName = function() {};

function(_c) { _c.prototype.method1 = ...; _c.prototype.method2 = ...; }(MyLongClassName);

This allows something like YUI compressor to shorten _c local variable for every method definition, rather than store "MyLongClassName" for each one.

There are no comments on this comment yet.