Unload Garbage Collection Patch 1.3.2

Unload Garbage Collection Patch 1.3.2


ISSUE:
Garbage cleanup is assigned to an anonymous function. Sometimes
onunload is used by other logic that may need jQuery to perform
certain tasks. The ability to unbind/bind the garbage collection
routine is handy to bump execution order.
SUGGESTED SOLUTION:
Assign garbage collection routine to a named closure.
PATCH FILE:
3106,3111c3106,3111
< jQuery( window ).bind( 'unload', function(){
<     for ( var id in jQuery.cache )
<         // Skip the window
<         if ( id != 1 && jQuery.cache[ id ].handle )
<             jQuery.event.remove( jQuery.cache[ id ].handle.elem );
< });
---