This feature will move all global statments/function into a single function. The global identifier references will be replaced as the local references.
Without this feature:
function logit(){
}
function mylogic(){
logit()
}
With this feature :
var logit,mylogic;
(function(){
function a(){
}
function b(){
a()
}
logit=a;mylogic=b;
})()
The more long the code is , the more complex the local references will be generated.
Compatibility note : replace the reference of the global identifier will not affect the local reference. try to use var myoverridablefunc=function(){} instead of function myoverridablefunc(){}