We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi!
I'm getting an error when calling nanoajax.ajax() WITHOUT setting a callback function.
nanoajax.ajax()
Code :
nanoajax.ajax({url:'/some-get-url'})
Error :
Uncaught TypeError: a is not a function at XMLHttpRequest.<anonymous> (nanoajax.js:2)
It may arrives that handling XHR response is not necessary. As a consequence, setting a callback should not be necessary.
XHR
A condition to check if a is a function would take some bytes, but be useful.
a
Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi!
I'm getting an error when calling
nanoajax.ajax()
WITHOUT setting a callback function.Code :
Error :
It may arrives that handling
XHR
response is not necessary. As a consequence, setting a callback should not be necessary.A condition to check if
a
is a function would take some bytes, but be useful.Thanks!
The text was updated successfully, but these errors were encountered: