jquery/jquery — pull request #749 by gibson042 (2012-04-22 15:56:38+00:00)
Title: refactor jsonp.js for size and clarity

As [requested](https://github.com/jquery/jquery/pull/744#issuecomment-5235926) by @jaubourg.

jQuery Size - compared to d3b61de52084353646e1abee7dc7a76c63237b9b

```
252839 (+276) jquery.js
93756 (-28) jquery.min.js
33297 (-46) jquery.min.js.gz
```

Comments:
* You were right; this module is ***nuts***
* The refactoring does alter behavior in extreme edge cases where `jsonpCallback` is "=?" or "??", because the current version treats an identity `replace` as failure and falls back to appending something like "&callback==?" or "&callback=??" (respectively) on the URL. I've assumed this to be irrelevant and/or invalid, and thus subject to change.
* I don't really trust my JSONP tests... can @jaubourg or someone else please confirm that everything still works as expected?