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

Ensure multiple sequential calls to open_() and close_() are actually no-op #4204

Merged
merged 2 commits into from Jul 26, 2016

Conversation

aghassemi
Copy link
Contributor

No description provided.

@@ -126,6 +126,9 @@ export class AmpSidebar extends AMP.BaseElement {
* @private
*/
open_() {
if (this.isOpen_()) {
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the fix! Please update unit tests to check for no-op conditions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@camelburrito
Copy link
Contributor

LGTM

@aghassemi aghassemi merged commit 1d99da8 into ampproject:master Jul 26, 2016
@aghassemi aghassemi deleted the dblclose branch July 26, 2016 00:28
ariangibson pushed a commit to Mixpo/amphtml that referenced this pull request Sep 7, 2016
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.

None yet

2 participants