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

🐛 [Amp story] [Draggable drawer] Update naming of private and protected variables #35119

Merged
merged 4 commits into from
Jul 21, 2021

Conversation

processprocess
Copy link
Contributor

headerEl_ can currently be accessed from initializeListeners_ before the element it is built. Which throws an error.
This adds a null check to be sure the element exists before accessing properties.

@amp-owners-bot
Copy link

amp-owners-bot bot commented Jul 2, 2021

Hey @gmajoulet, @newmuis! These files were changed:

extensions/amp-story/1.0/amp-story-draggable-drawer.js
extensions/amp-story/1.0/amp-story-page-attachment.js

Copy link
Contributor

@gmajoulet gmajoulet left a comment

Choose a reason for hiding this comment

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

(discussed offline, updating this for the record)

Please remove the trailing underscores for @protected variables, that should fix the bug

@processprocess processprocess merged commit bbec8df into ampproject:main Jul 21, 2021
@processprocess processprocess deleted the header-el branch July 21, 2021 17:01
@processprocess processprocess changed the title 🐛 [Amp story] [Draggable drawer] Null check on headerEl. 🐛 [Amp story] [Draggable drawer] Update naming of private and protected variables Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants