mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Name the try/catch arg to satisfy JSLint - thanks to @rwldrn in 873c28425f
for the catch.
This commit is contained in:
parent
51283d9643
commit
da597bcf90
@ -698,12 +698,12 @@ if ( window.ActiveXObject ) {
|
|||||||
if ( window.location.protocol !== "file:" ) {
|
if ( window.location.protocol !== "file:" ) {
|
||||||
try {
|
try {
|
||||||
return new window.XMLHttpRequest();
|
return new window.XMLHttpRequest();
|
||||||
} catch(e) {}
|
} catch(xhrError) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return new window.ActiveXObject("Microsoft.XMLHTTP");
|
return new window.ActiveXObject("Microsoft.XMLHTTP");
|
||||||
} catch(e) {}
|
} catch(activeError) {}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user