jquery/jquery — pull request #1007 by farmdawgnation (2012-10-24 16:21:12+00:00)
Title: #12004 - AJAX - Alias options.method to options.type

I was in the mood for a bite-sized feature this morning, and didn't see that anyone had grabbed this one yet.

This pull request adds support for an additional AJAX option, method, that is aliased to the AJAX option type, in the fashion described in [ticket #12004](http://bugs.jquery.com/ticket/12004). For backward compatibility this is a simple alias, and the type argument will continue to work. When both are specified, method will win out.

Size comparison with this new feature.

```
267694 (+113) dist/jquery.js
94023 (+24) dist/jquery.min.js
33618 (+15) dist/jquery.min.js.gz
```

Additionally, two new tests were added that simply mimic the simple GET/POST tests with the difference that they use method instead of type.

I ran the unit tests with the following results.

* Firefox - PASS
* Chrome - No additional failures.
* There's a failure for jQuery.each that seems to already exists in master.
* Safari - PASS
* Opera - PASS
* IE 9 - No additional failures.
* From what I can tell master had a handful of tests already failing.
* IE 8 - No additional failures.
* See notes for IE 9.
* IE 7 - No additional failures.
* See notes for IE 9.
* IE 6 - ?
* Sauce scout chokes and I can't get an IE6 VM working. :/ Going to try again shortly but if someone has a spare cycle and an IE 6 VM already spun up I would love you forever.

Will update the PR when the status of IE 6 is solidified when either a) Sauce stops being stupid, b) I can get a working VM, or c) someone donates their time for me, jQuery, and the good of mankind. Considering that everything else is looking solid, I wanted to go ahead and open this PR and start discussion on merging.

Let me know if I missed anything. Cheers!