Opened 10 years ago
Closed 10 years ago
#14199 closed bug (duplicate)
Event received twice if fired by jquery
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Bug demo http://jsfiddle.net/ewh8c/
Pure javascript is OK http://jsfiddle.net/5yPAp/
Change History (5)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
The event is bubbling, as it should. Please ask for help on a forum.
comment:3 Changed 10 years ago by
I take that back, the inline handler seems like it should only be called once.
comment:4 Changed 10 years ago by
When listener is attached by jQuery, it is called also once. http://jsfiddle.net/ewh8c/2/
comment:5 Changed 10 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #10168.
See the duplicate ticket. Inline handlers are going to be executed twice for these edge cases, you can .stopPropagation()
as a solution or better yet, don't use inline handlers.
Note: See
TracTickets for help on using
tickets.
#14200 is a duplicate of this ticket.