Side navigation
#9999 closed bug (invalid)
Opened August 08, 2011 09:57AM UTC
Closed August 08, 2011 01:17PM UTC
one() fires more then once on the same element
Reported by: | anotherhero@gmail.com | 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.
Attachments (0)
Change History (1)
Changed August 08, 2011 01:17PM UTC by comment:1
component: | unfiled → event |
---|---|
priority: | undecided → low |
resolution: | → invalid |
status: | new → closed |
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.