Bug 801075 - [contacts] aRequest misspelled and a check for "request" which fails. r=ddahl

This commit is contained in:
Gregor Wagner 2012-10-13 11:57:59 -07:00
parent 9850d4f0f5
commit 27e40a03e1

View File

@ -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)
});