Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
ea3e10a4
Commit
ea3e10a4
authored
Feb 11, 2011
by
jaubourg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes to enforce JQuery Core Style Guidelines.
parent
481d940e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
ajax.js
src/ajax.js
+1
-1
xhr.js
src/ajax/xhr.js
+11
-9
No files found.
src/ajax.js
View file @
ea3e10a4
...
...
@@ -451,7 +451,7 @@ jQuery.extend({
// Callback for when everything is done
// It is defined here because jslint complains if it is declared
// at the end of the function (which would be more logical and readable)
function
done
(
status
,
statusText
,
responses
,
headers
)
{
function
done
(
status
,
statusText
,
responses
,
headers
)
{
// Called once
if
(
state
===
2
)
{
...
...
src/ajax/xhr.js
View file @
ea3e10a4
...
...
@@ -26,7 +26,7 @@ function createStandardXHR() {
function
createActiveXHR
()
{
try
{
return
new
window
.
ActiveXObject
(
"Microsoft.XMLHTTP"
);
return
new
window
.
ActiveXObject
(
"Microsoft.XMLHTTP"
);
}
catch
(
e
)
{}
}
...
...
@@ -166,14 +166,16 @@ if ( jQuery.support.ajax ) {
}
// Filter status for non standard behaviors
status
=
// If the request is local and we have data: assume a success
// (success with no data won't get notified, that's the best we
// can do given current implementations)
!
status
&&
s
.
isLocal
&&
!
s
.
crossDomain
?
(
responses
.
text
?
200
:
404
)
:
// IE - #1450: sometimes returns 1223 when it should be 204
(
status
===
1223
?
204
:
status
);
// If the request is local and we have data: assume a success
// (success with no data won't get notified, that's the best we
// can do given current implementations)
if
(
!
status
&&
s
.
isLocal
&&
!
s
.
crossDomain
)
{
status
=
responses
.
text
?
200
:
404
;
// IE - #1450: sometimes returns 1223 when it should be 204
}
else
if
(
status
===
1223
)
{
status
=
204
;
}
}
}
}
catch
(
firefoxAccessException
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment