Skip to content
Snippets Groups Projects
Commit dc9fedfa authored by Shane Tomlinson's avatar Shane Tomlinson
Browse files

Removing the extra xhrError

parent 7625d139
No related branches found
No related tags found
Loading
......@@ -109,7 +109,7 @@ BrowserID.Network = (function() {
auth_status = result.authenticated;
cb();
},
error: xhrError(onFailure)
error: deferResponse(xhrError(onFailure))
});
}
}
......@@ -124,15 +124,6 @@ BrowserID.Network = (function() {
hub.publish("offline");
});
function xhrError(callback, error) {
return function() {
if (callback) {
callback();
}
hub.publish("xhrError", error);
};
}
var Network = {
/**
* Set the XHR object and clear all context info. Used for testing.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment