Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

done/fail fn can be called 2 times #2

Open
xxorax opened this issue Dec 30, 2012 · 0 comments
Open

done/fail fn can be called 2 times #2

xxorax opened this issue Dec 30, 2012 · 0 comments

Comments

@xxorax
Copy link

xxorax commented Dec 30, 2012

If a callback function is added (with done or fail fn) between the status change and the call of resolve/reject fonction (like between https://github.com/warpdesign/Standalone-Deferred/blob/master/js/deferred.js#L205-L208 ), then the callback will be called 2 times.

Need to implement a callback stack with disable and lock features, like in $.Callbacks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant