Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitabdc89a

Browse files
authored
Ajax: Simplify jQuery.ajaxSettings.xhr
Previously, jQuery.ajaxSettings.xhr, contents were wrapped in a try-catchas we defined jQuery.support.ajax & jQuery.support.cors executed during thejQuery load and we didn't want to crash if IE had native XHR disabled (whichis possible). While jQuery hasn't supported the ActiveX-based XHR since 2.0,jQuery with XHR disabled could still be used for its other features in sucha crippled browser.Sincegh-4347, jQuery.support.ajax & jQuery.support.cors no longer exist, sowe don't need the try-catch anymore.Fixesgh-1967Closesgh-4467Refgh-4347
1 parentd7e6419 commitabdc89a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎src/ajax/xhr.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ define( [
66
"use strict";
77

88
jQuery.ajaxSettings.xhr=function(){
9-
try{
10-
returnnewwindow.XMLHttpRequest();
11-
}catch(e){}
9+
returnnewwindow.XMLHttpRequest();
1210
};
1311

1412
varxhrSuccessStatus={

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp