Skip to content

Commit

Permalink
Remove useless '|| null'
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed Dec 2, 2010
1 parent 5dfd319 commit d870d29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ajax.js
Expand Up @@ -2,10 +2,10 @@
$.ajax = function(options){
// { type, url, data, success, dataType, contentType }
options = options || {};
var data = options.data || null,
cb = options.success || null,
mime = mimeTypes[options.dataType || null],
content = options.contentType || null,
var data = options.data,
cb = options.success,
mime = mimeTypes[options.dataType],
content = options.contentType,
xhr = new XMLHttpRequest();

if (cb instanceof Function) {
Expand Down

0 comments on commit d870d29

Please sign in to comment.