#10952 closed bug (fixed)
.fired() doesn't work on Callbacks object when it is flagged with "once"
Reported by: | Owned by: | jaubourg | |
---|---|---|---|
Priority: | low | Milestone: | 1.7.2 |
Component: | misc | Version: | 1.7.1 |
Keywords: | Cc: | jaubourg | |
Blocked by: | Blocking: |
Description
Adding the flags "once" or "once unique" to a callbacks object seems to disable the ability of .fired() to accurately reflect whether or not it was fired at least once. It always returns false, no matter how many times you fire the callback (it will only fire its functions once, obviously, but at that point it should be flagged as fired/resolved). This means that there is no simple way to tell if a callback has fired already (which is useful for triggering other loosely coupled behavior).
http://jsfiddle.net/XmPze/27/
Same (wrong?) behavior in both 1.7 and 1.7.1
Change History (3)
comment:1 Changed 11 years ago by
Cc: | jaubourg added |
---|---|
Component: | unfiled → misc |
Priority: | undecided → low |
comment:2 Changed 11 years ago by
Milestone: | None → 1.7.2 |
---|---|
Owner: | set to jaubourg |
Status: | new → assigned |
comment:3 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Fixes #10952 by introducing a real fired flag in the Callbacks closure.
jQuery Size - compared to last make