Bug Tracker

Modify

Ticket #3108 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

Optimization for global unbinding on window unload

Reported by: mike.helgeson Owned by: flesler
Priority: minor Milestone: 1.3
Component: event Version: 1.2.6
Keywords: Cc:
Blocking: Blocked by:

Description

Can't we do this for the unload event?

jQuery(window).bind("unload",function(){ 
   for ( var guid in jQuery.cache ) 
      if ( guid>1 && jQuery.cache[ guid ].handle ) 
         jQuery.event.remove( jQuery.cache[ guid ].handle.elem ); 
});

Attachments

unbind-unload[5757].diff Download (681 bytes) - added by flesler 5 years ago.

Change History

comment:1 Changed 5 years ago by flesler

  • need changed from Review to Commit
  • Status changed from new to assigned

Changed 5 years ago by flesler

comment:2 Changed 5 years ago by flesler

  • Status changed from assigned to closed
  • Resolution set to fixed

Applied at [5758].

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.