From: jeresig Date: Sat, 9 Oct 2010 16:26:44 +0000 (-0400) Subject: Name the try/catch arg to satisfy JSLint - thanks to @rwldrn in 873c28425fb64fdb48cfa... X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=da597bcf9014b1827e50c0e8f3b9268318574572 Name the try/catch arg to satisfy JSLint - thanks to @rwldrn in 873c28425fb64fdb48cfa09d17041bded39b301f for the catch. --- diff --git a/src/ajax.js b/src/ajax.js index e615480..95e40ec 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -698,12 +698,12 @@ if ( window.ActiveXObject ) { if ( window.location.protocol !== "file:" ) { try { return new window.XMLHttpRequest(); - } catch(e) {} + } catch(xhrError) {} } try { return new window.ActiveXObject("Microsoft.XMLHTTP"); - } catch(e) {} + } catch(activeError) {} }; }