aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax/xhr.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2014-07-17 10:25:59 -0700
committerTimmy Willison <timmywillisn@gmail.com>2014-07-17 10:25:59 -0700
commitc869a1ef8a031342e817a2c063179a787ff57239 (patch)
treebf70e1683cc53d5d3793a8deb0aaafe2bd684513 /src/ajax/xhr.js
parent8e3a0ceafa2c7c78902d0eab07d21b793deb5366 (diff)
downloadjquery-c869a1ef8a031342e817a2c063179a787ff57239.tar.gz
jquery-c869a1ef8a031342e817a2c063179a787ff57239.zip
Build: update grunt-jscs-checker and pass with the new rules
Diffstat (limited to 'src/ajax/xhr.js')
-rw-r--r--src/ajax/xhr.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js
index bdeeee3f8..a733eded0 100644
--- a/src/ajax/xhr.js
+++ b/src/ajax/xhr.js
@@ -7,7 +7,7 @@ define([
jQuery.ajaxSettings.xhr = function() {
try {
return new XMLHttpRequest();
- } catch( e ) {}
+ } catch ( e ) {}
};
var xhrId = 0,
@@ -45,7 +45,13 @@ jQuery.ajaxTransport(function( options ) {
xhr = options.xhr(),
id = ++xhrId;
- xhr.open( options.type, options.url, options.async, options.username, options.password );
+ xhr.open(
+ options.type,
+ options.url,
+ options.async,
+ options.username,
+ options.password
+ );
// Apply custom fields if provided
if ( options.xhrFields ) {