Skip to content

Avoiding callback errors #13

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

Merged
merged 1 commit into from
Jul 24, 2012
Merged

Avoiding callback errors #13

merged 1 commit into from
Jul 24, 2012

Conversation

mattpass
Copy link
Collaborator

If on success there is no XHR responseText, output true instead to avoid errors being created in callback.

For instance, delete a gist, there is no callback text to pass back and currently this causes an error. With this change it now passes back true instead, which is a more positive response that actually everything went well.

Upon successful response, if there is no responseText output true
(Stops a callback errors being created with some API calls when actually
everything went well)
michael added a commit that referenced this pull request Jul 24, 2012
Avoiding callback errors
@michael michael merged commit 5e8ac76 into github-tools:master Jul 24, 2012
punchagan pushed a commit to punchagan/github that referenced this pull request Aug 23, 2014
Ability to specify organisation into which to fork
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.

2 participants