Skip to content

Commit

Permalink
Name the try/catch arg to satisfy JSLint - thanks to @rwldrn in 873c284
Browse files Browse the repository at this point in the history
… for the catch.
  • Loading branch information
jeresig committed Oct 9, 2010
1 parent 51283d9 commit da597bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ajax.js
Expand Up @@ -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) {}
}; };
} }


Expand Down

1 comment on commit da597bc

@rwaldron
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome - speedy patching!

Please sign in to comment.