Modify ↓
Ticket #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: | |
| 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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
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.