aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2014-04-25 18:26:36 -0400
committerDave Methvin <dave.methvin@gmail.com>2014-06-10 23:28:14 -0400
commitd837f119c3729565103005d5d7fa89e1dd8110cb (patch)
tree03f41c64a16faab49698d7fa6c2519c79874d706 /src/ajax.js
parentff9dcfb0c4238d405af92cbd4ac27e0a36c6ff0c (diff)
downloadjquery-d837f119c3729565103005d5d7fa89e1dd8110cb.tar.gz
jquery-d837f119c3729565103005d5d7fa89e1dd8110cb.zip
Support: clean up comments and Support notation
Closes gh-1577
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 0d0644b92..ea808716d 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -44,8 +44,8 @@ var
// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
allTypes = "*/".concat("*");
-// #8138, IE may throw an exception when accessing
-// a field from window.location if document.domain has been set
+// Support: IE6
+// Exception accessing window.location.href if document.domain is set (#8138)
try {
ajaxLocation = location.href;
} catch( e ) {
@@ -610,7 +610,7 @@ jQuery.extend({
return jqXHR.abort();
}
- // aborting is no longer a cancellation
+ // Aborting is no longer a cancellation
strAbort = "abort";
// Install callbacks on deferreds
@@ -722,8 +722,7 @@ jQuery.extend({
isSuccess = !error;
}
} else {
- // We extract error from statusText
- // then normalize statusText and status for non-aborts
+ // Extract error from statusText and normalize for non-aborts
error = statusText;
if ( status || !statusText ) {
statusText = "error";
@@ -779,7 +778,7 @@ jQuery.extend({
jQuery.each( [ "get", "post" ], function( i, method ) {
jQuery[ method ] = function( url, data, callback, type ) {
- // shift arguments if data argument was omitted
+ // Shift arguments if data argument was omitted
if ( jQuery.isFunction( data ) ) {
type = type || callback;
callback = data;