Bug Tracker

Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#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)

jquery-1.3.2.js.patch (618 bytes) - added by docyes 13 years ago.
Patch File

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by docyes

Attachment: jquery-1.3.2.js.patch added

Patch File

comment:1 Changed 12 years ago by Rick Waldron

Owner: set to docyes
Priority: undecided
Status: newpending

Please provide a test case on jsFiddle.net

Last edited 12 years ago by Rick Waldron (previous) (diff)

comment:2 Changed 12 years ago by Rick Waldron

Component: unfiledevent
Priority: undecidedlow

comment:3 Changed 12 years ago by trac-o-bot

Status: pendingclosed

Automatically closed due to 14 days of inactivity.

comment:14 Changed 12 years ago by dmethvin

#10048 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.