#6845 closed bug
unload garbage collection
Reported by: | docyes | Owned by: | docyes |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | event | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
ISSUE: Garbage cleanup is not assigned to an anonymous function. Sometimes unonload 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 ); < }); ---
Attachments (1)
Change History (5)
Changed 13 years ago by
Attachment: | jquery-1.3.2.js.patch added |
---|
comment:1 Changed 12 years ago by
Owner: | set to docyes |
---|---|
Priority: | → undecided |
Status: | new → pending |
Please provide a test case on jsFiddle.net
comment:2 Changed 12 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → low |
comment:3 Changed 12 years ago by
Status: | pending → closed |
---|
Automatically closed due to 14 days of inactivity.
Patch File