Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: give PaymentMethodChangeEventInit defaults #771

Merged
merged 2 commits into from
Sep 4, 2018
Merged

Conversation

marcoscaceres
Copy link
Member

@marcoscaceres marcoscaceres commented Aug 30, 2018

closes #770

The following tasks have been completed:

  • Confirmed there are no ReSpec errors/warnings.
  • Modified Web platform tests (link)
  • Modified MDN Docs (link)

Implementation commitment:

Optional, Impact on Payment Handler spec?


Preview | Diff

@marcoscaceres
Copy link
Member Author

Added gecko bug. Will write a test to make sure it defaults correctly.

@aestes
Copy link
Collaborator

aestes commented Aug 30, 2018

I'm implementing all of PaymentMethodChangeEvent in this WebKit bug, so I'll update my patch with this change before landing.

Copy link
Collaborator

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but might also want to add a = null for methodDetails. I don't think it has any normative effect, but it seems like the trend is to have defaults for all event-init dictionaries?

@marcoscaceres marcoscaceres changed the title fix: default methodName to empty string fix: give PaymentMethodChangeEventInit defaults Aug 31, 2018
@marcoscaceres
Copy link
Member Author

Tests will be upstreamed from Gecko once the Firefox patch lands.

@marcoscaceres
Copy link
Member Author

Ok, sent request to merge on the Firefox side and asked our awesome tech writers to document this change.

@marcoscaceres marcoscaceres merged commit f8aa063 into gh-pages Sep 4, 2018
@marcoscaceres marcoscaceres deleted the methodName branch September 4, 2018 07:40
@marcoscaceres
Copy link
Member Author

Spec is republished on TR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can PaymentMethodChangeEventInit really have a required member?
3 participants