Skip to content

Commit

Permalink
Fixed typo: put "mode" instead of "type"... that's what happens when …
Browse files Browse the repository at this point in the history
…you get your nose into a w3c spec for too long ;)

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
  • Loading branch information
jaubourg committed Jan 15, 2010
1 parent e9e82fc commit 3ead90c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ajax.js
Expand Up @@ -317,7 +317,7 @@ jQuery.extend({
var xhr = jQuery.xhr();

if ( s ) {
xhr.open(s.mode, s.url, s.async, s.username, s.password);
xhr.open(s.type, s.url, s.async, s.username, s.password);
return xhr.send(s.data, s);
} else {
xhr.open();
Expand Down
4 changes: 2 additions & 2 deletions src/xhr.js
Expand Up @@ -389,13 +389,13 @@ jQuery.xhr = function() {
onreadystatechange: null,

// Open
open: function(method, url, async, username, password) {
open: function(type, url, async, username, password) {

xhr.abort();
reset();

s = {
method: method,
type: type,
url: url,
async: async,
username: username,
Expand Down

0 comments on commit 3ead90c

Please sign in to comment.