Side navigation
#6845 closed bug ()
Opened July 28, 2010 10:13PM UTC
Closed November 11, 2010 11:09PM UTC
Last modified August 14, 2011 08:27PM UTC
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 (4)
Changed October 25, 2010 09:53PM UTC by comment:1
| _comment0: | → 1288043640644636 |
|---|---|
| owner: | → docyes |
| priority: | → undecided |
| status: | new → pending |
Changed October 25, 2010 10:05PM UTC by comment:2
| component: | unfiled → event |
|---|---|
| priority: | undecided → low |
Changed November 11, 2010 11:09PM UTC by comment:3
| status: | pending → closed |
|---|
Automatically closed due to 14 days of inactivity.
Please provide a test case on jsFiddle.net