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
amp-date-countdown: migrated getAttributes from constructor to buildCallback #17656
Conversation
/cc @leonalicious |
@aghassemi @cathyxz may i know when will this PR get merged into master branch please ? |
@aghassemi @cathyxz may i know when will this PR get merged into master branch please ? |
@leonalicious apologies, ran into some lint issue then was our of office. Will merge it today. |
@leonalicious there were some type issues with the PR which I fixed but now unit tests are failing as they are not compatible with the move from |
Never mind, managed to find a fix for it. Merged. Sorry about the delay |
…allback (ampproject#17656) * amp-date-countdown: migrated getAttributes from constructor to buildCallback * lint * define the types in constructor * set end-date in tests
Clone of #17622 by @leonalicious
Fixes #17596
amp-date-countdown
will have issue of getting the attributes from DOM. We should have writtenlist of elements which are responsible of getting attributes from DOM, such as
this.element.getAttribute('end-date')
inbuildCallback()
instead ofconstructor()