Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix(sidenav): don't log an error when waiting for an instance. #8326

Closed
wants to merge 1 commit into from

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented May 3, 2016

  • The $mdSidenav service was logging errors, even if the option to wait for an asynchronous instance was passed. This changes it to only log if the lookup for the instance is synchronous.
  • Fixes the error for an invalid sidenav instance name not being logged if the enableWait argument is passed.
  • Adds info about the async argument of $mdSidenav in the docs.

Fixes #8308.

@crisbeto crisbeto added the needs: review This PR is waiting on review from the team label May 3, 2016
var instance = $mdComponentRegistry.get(handle);
if(!instance) {

if(!instance && !shouldWait) {
Copy link
Member

Choose a reason for hiding this comment

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

Nitpicky as always :) - Please add space for consistency.

Copy link
Member Author

Choose a reason for hiding this comment

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

It wasn't my changes this time! Thanks for the tip, though :)

* The `$mdSidenav` service was logging errors, even if the option to wait for an asynchronous instance was passed. This changes it to only log if the lookup for the instance is synchronous.
* Fixes the error for an invalid sidenav instance name not being logged if the `enableWait` argument is passed.
* Adds info about the async argument of `$mdSidenav` in the docs.

Fixes angular#8308.
@ThomasBurleson ThomasBurleson added pr: merge ready This PR is ready for a caretaker to review and removed needs: review This PR is waiting on review from the team labels May 15, 2016
@ThomasBurleson ThomasBurleson added this to the 1.1.0 milestone May 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants