Skip to main content

Bug Tracker

Side navigation

#6217 closed bug (worksforme)

Opened March 04, 2010 10:58AM UTC

Closed March 04, 2010 03:28PM UTC

Last modified March 15, 2012 06:40PM UTC

$(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:
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.

Attachments (0)
Change History (1)

Changed March 04, 2010 03:28PM UTC by john comment:1

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.