mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
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:
parent
7bebf01b39
commit
2855dea48c
@ -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";
|
||||
|
||||
|
@ -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",
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
let PaymentRequest = {
|
||||
var paymentRequest = {
|
||||
domReadyPromise: null,
|
||||
|
||||
init() {
|
||||
@ -110,4 +110,4 @@ let PaymentRequest = {
|
||||
},
|
||||
};
|
||||
|
||||
PaymentRequest.init();
|
||||
paymentRequest.init();
|
||||
|
Loading…
Reference in New Issue
Block a user