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(sidenav): resolve promise as false rather than #1930

Merged
merged 2 commits into from
Nov 30, 2016

Conversation

mmalerba
Copy link
Contributor

rejecting it when the toggle animation is canceled. also clean up the
overly complex promise logic

rejecting it when the toggle animation is canceled. also clean up the
overly complex promise logic
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 18, 2016
@@ -134,15 +143,15 @@ export class MdSidenav implements AfterContentInit {

/** Open this sidenav, and return a Promise that will resolve when it's fully opened (or get
* rejected if it didn't). */
open(): Promise<void> {
open(): Promise<boolean> {
Copy link
Member

Choose a reason for hiding this comment

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

Rather than emitting a boolean directly, can we create an event object and include this information? That lets us add additional information to the event in the future.

@mmalerba
Copy link
Contributor Author

Done

@mmalerba
Copy link
Contributor Author

fixes #1899

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Nov 29, 2016
@jelbourn
Copy link
Member

LGTM

@tinayuangao tinayuangao merged commit 7816752 into angular:master Nov 30, 2016
@mmalerba mmalerba deleted the snav-err branch December 2, 2016 21:56
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants