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

Simplify XHR detection #1967

Closed
Closed
Assignees
timmywil
Milestone
@FarSeeing

Description

@FarSeeing

This is theXMLHttpRequest object detection code:

https://github.com/jquery/jquery/blob/master/src/ajax/xhr.js

jQuery.ajaxSettings.xhr=function(){try{returnnewXMLHttpRequest();}catch(e){}};...xhrSupported=jQuery.ajaxSettings.xhr();...support.cors=!!xhrSupported&&("withCredentials"inxhrSupported);support.ajax=xhrSupported=!!xhrSupported;

support.ajax is used nowhere in the code and is not documented,XMLHttpRequest object is supported in all modern browsers (including Android 2.3, iOS 6.1, Opera 12 and IE 9 —caniuse.com).
Why not removexhrSupported variable together withsupport.ajax andtry-catch block?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp