Bug 1434839 - Rename 'PaymentRequest' variable to camelCase to reduce confusion with the standard API. r=jaws

Also export paymentRequest so it's accessible to debugging.js in the next commit

MozReview-Commit-ID: 9w6zaQZanfJ

--HG--
extra : rebase_source : f1bd763033846833e6d93841f98e06c6f7260d38
This commit is contained in:
Matthew Noorenberghe 2018-02-01 14:40:15 -08:00
parent 7bebf01b39
commit 2855dea48c
3 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* global PaymentStateSubscriberMixin, PaymentRequest */
/* global PaymentStateSubscriberMixin */
"use strict";

View File

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* global PaymentStateSubscriberMixin, PaymentRequest */
/* global PaymentStateSubscriberMixin, paymentRequest */
"use strict";
@ -55,11 +55,11 @@ class PaymentDialog extends PaymentStateSubscriberMixin(HTMLElement) {
}
cancelRequest() {
PaymentRequest.cancel();
paymentRequest.cancel();
}
pay() {
PaymentRequest.pay({
paymentRequest.pay({
methodName: "basic-card",
methodData: {
cardholderName: "John Doe",

View File

@ -10,7 +10,7 @@
"use strict";
let PaymentRequest = {
var paymentRequest = {
domReadyPromise: null,
init() {
@ -110,4 +110,4 @@ let PaymentRequest = {
},
};
PaymentRequest.init();
paymentRequest.init();