From dc9fedfad4986e573d05a0cab555bcdea233eb3c Mon Sep 17 00:00:00 2001 From: Shane Tomlinson <stomlinson@mozilla.com> Date: Mon, 24 Oct 2011 13:34:50 +0100 Subject: [PATCH] Removing the extra xhrError --- browserid/static/dialog/resources/network.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/browserid/static/dialog/resources/network.js b/browserid/static/dialog/resources/network.js index 503fb8aea..daf5edb84 100644 --- a/browserid/static/dialog/resources/network.js +++ b/browserid/static/dialog/resources/network.js @@ -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. -- GitLab