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

Added abort function to sync's returned promise, to comply with XMLHttpRequest #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

liorcode
Copy link

@liorcode liorcode commented Dec 8, 2014

I extended the Promise returned by "sync" to also include an "abort" function. This is to comply with "XMLHttpRequest" and more specifically, jqXHR.
This is needed because the original's Backbone sync returns a jqXHR object, which has an abort function, which is used in some use cases, so not having it in iobind causes an error.

Seems that it does more damage than good; it causes the socket to never
reconnect, and its not really needed.
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

Successfully merging this pull request may close these issues.

1 participant