From 27e40a03e1ed224e6fe888bda789cd0d1c35f1d1 Mon Sep 17 00:00:00 2001 From: Gregor Wagner Date: Sat, 13 Oct 2012 11:57:59 -0700 Subject: [PATCH] Bug 801075 - [contacts] aRequest misspelled and a check for "request" which fails. r=ddahl --- dom/contacts/ContactManager.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dom/contacts/ContactManager.js b/dom/contacts/ContactManager.js index 60e809a6a142..63520fe3ed11 100644 --- a/dom/contacts/ContactManager.js +++ b/dom/contacts/ContactManager.js @@ -437,18 +437,18 @@ ContactManager.prototype = { this.removeRequest(msg.requestID); }, - askPermission: function (aAccess, aReqeust, aAllowCallback, aCancelCallback) { + askPermission: function (aAccess, aRequest, aAllowCallback, aCancelCallback) { if (DEBUG) debug("askPermission for contacts"); let requestID = this.getRequestId({ - request: aReqeust, + request: aRequest, allow: function() { aAllowCallback(); }.bind(this), cancel : function() { if (aCancelCallback) { aCancelCallback() - } else if (request) { - Services.DOMRequest.fireError(request, "Not Allowed"); + } else if (aRequest) { + Services.DOMRequest.fireError(aRequest, "Not Allowed"); } }.bind(this) });