Skip to content

Commit

Permalink
Fix JSHint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetx committed Jan 1, 2014
1 parent 0486e94 commit f352df0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions codebird.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
document,
navigator,
console,
XMLHttpRequest,
ActiveXObject,
module,
define,
Expand Down Expand Up @@ -1229,15 +1228,15 @@ var Codebird = function () {
try {
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
xml = new XMLHttpRequest();
} catch (e) {
} catch (e1) {
try {
var XMLHttpRequest = require("xhr2");
xml = new XMLHttpRequest();
} catch (e) {
} catch (e2) {
console.error("xhr2 object not defined, trying ActiveXObject.");
try {
xml = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
} catch (e3) {
console.error("ActiveXObject object not defined, cancelling.");
}
}
Expand Down

0 comments on commit f352df0

Please sign in to comment.