Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#6217 closed bug (worksforme)

$(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:
Blocked by: Blocking:


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 (1)

comment:1 Changed 10 years ago by john

Resolution: worksforme
Status: newclosed

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.

Note: See TracTickets for help on using tickets.