Bug Tracker

Modify

Ticket #6217 (closed bug: worksforme)

Opened 3 years ago

Last modified 14 months ago

$(foo).trigger('load') fires window.load event in ie

Reported by: el_tone Owned by:
Priority: Milestone: 1.4.3
Component: event Version: 1.4.2
Keywords: trigger load Cc:
Blocking: Blocked by:

Description

When using trigger to explicitly fire the load event on an object (to handle load event not firing for cached images in ie), the window.load event is also fired.

Change History

comment:1 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to worksforme

Yep, that's to be expected since the event will bubble up the tree. You'll need to call event.stopPropagation() inside your handler for the load event if you don't want it to continue up the tree.

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.