Opened 12 years ago
Closed 12 years ago
#9999 closed bug (invalid)
one() fires more then once on the same element
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | event | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Try clicking at least once with left and once with right mouse buttons.
The documentation says "Attach a handler to an event for the elements. The handler is executed at most once per element."
Ok it says to an event and not events but I doubt this is working as intended.
Change History (1)
comment:1 Changed 12 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Right, that is correct behavior. The space-delimited syntax is simply a shortcut for binding multiple events. If you wanted something to happen one time on click and something else to happen one time on hover, they would both fire, but they would both fire once.