#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: |
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.
Note: See
TracTickets for help on using
tickets.
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.