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
90d9c463
Commit
90d9c463
authored
Nov 04, 2013
by
Richard Gibson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No ticket: Update style per gh-1418 comments
parent
45a45599
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
xhr.js
src/ajax/xhr.js
+6
-8
No files found.
src/ajax/xhr.js
View file @
90d9c463
...
...
@@ -77,11 +77,9 @@ if ( xhrSupported ) {
}
// Need an extra try/catch for cross-domain requests in Firefox 3
try
{
for
(
i
in
headers
)
{
xhr
.
setRequestHeader
(
i
,
headers
[
i
]
);
}
}
catch
(
err
)
{}
for
(
i
in
headers
)
{
xhr
.
setRequestHeader
(
i
,
headers
[
i
]
);
}
// Do send the request
// This may raise an exception which is actually
...
...
@@ -114,8 +112,8 @@ if ( xhrSupported ) {
status
=
xhr
.
status
;
// Support: IE<10
//
#11426: When requesting binary data, IE9 will throw
an exception
//
on any attempt to access responseText
//
Accessing binary-data responseText throws
an exception
//
(#11426)
if
(
typeof
xhr
.
responseText
===
"string"
)
{
responses
.
text
=
xhr
.
responseText
;
}
...
...
@@ -186,7 +184,7 @@ function createStandardXHR() {
function
createActiveXHR
()
{
try
{
return
new
window
.
ActiveXObject
(
"Microsoft.XMLHTTP"
);
return
new
window
.
ActiveXObject
(
"Microsoft.XMLHTTP"
);
}
catch
(
e
)
{}
}
...
...
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