Ajax: Support `null` as success functions in `jQuery.get`
commit74978b7e892537559850cda7332bdab8106e6354
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 17 Oct 2022 16:54:28 +0000 (17 18:54 +0200)
committerGitHub <noreply@github.com>
Mon, 17 Oct 2022 16:54:28 +0000 (17 18:54 +0200)
tree2c63c07e58a59a14b0f11bf0387f6aad7fa7ca88
parent8c7da22caeae8c2c3f7e9869d5f47414669f106c
Ajax: Support `null` as success functions in `jQuery.get`

According to the docs, one can use `null` as a success function in `jQuery.get`
of `jQuery.post` so the following:

```js
await jQuery.get( "https://httpbin.org/json", null, "text" )
```

should get the text result. However, this shortcut hasn't been working so far.

Fixes gh-4989
Closes gh-5139
src/ajax.js
src/ajax/xhr.js
test/data/mock.php
test/unit/ajax.js