Skip to main content

Bug Tracker

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 rwaldron comment:1

_comment0: → 1288043640644636
owner: → docyes
priority: → undecided
status: newpending

Please provide a test case on jsFiddle.net

Changed October 25, 2010 10:05PM UTC by rwaldron comment:2

component: unfiledevent
priority: undecidedlow

Changed November 11, 2010 11:09PM UTC by trac-o-bot comment:3

status: pendingclosed

Automatically closed due to 14 days of inactivity.

Changed August 14, 2011 08:27PM UTC by dmethvin comment:4

#10048 is a duplicate of this ticket.