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 typeof check to the jsonp callback #729

Closed
wants to merge 2 commits into from
Closed

Added typeof check to the jsonp callback #729

wants to merge 2 commits into from

Conversation

mbjordan
Copy link
Contributor

When getting data via a jsonp request, its useful to have a check that ensures the callback function is defined before calling it. This prevents a reference error from being thrown in the browser if a function name is not defined when data is returned.

@mbjordan mbjordan changed the title Added typeof check to the jsonp callback Added typeof check to the jsonp callback Dec 23, 2014
@mbjordan mbjordan changed the title Added typeof check to the jsonp callback Added typeof check to the jsonp callback Dec 23, 2014
@yunong
Copy link
Member

yunong commented Feb 25, 2015

Hi, thanks for contributing! Could you please add a unit test for this? Please prefix the name with "gh #729".

@mbjordan
Copy link
Contributor Author

The test has been added, however the tests failed due to using version 3.0.0 on Travis and my PR is from 2.8.4.

Thinking I should close this PR and open a new one with the most recent version.

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.

None yet

2 participants