Modify ↓
Ticket #9999 (closed bug: invalid)
one() fires more then once on the same element
| Reported by: | anotherhero@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | event | Version: | 1.6.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
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
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.

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.