Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

feat(aria): add provider to disable console warnings. #8709

Closed

Conversation

devversion
Copy link
Member

Fixes #3507.

@devversion devversion added the needs: review This PR is waiting on review from the team label Jun 9, 2016
* @param {boolean} disable Whether to show `$mdAria` console warnings. Default value is `false`.
*/
function disableWarnings(disable) {
showWarnings = !disable || false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to pass a value to a function that is only available during the config phase? Why not disableWarnings() ?

Copy link
Member Author

Choose a reason for hiding this comment

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

@ThomasBurleson I actually added that to be able to reset the provider in the tests (we should not make changes for the tests to pass)

I will try to find a better solution.

@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 Jun 11, 2016
ThomasBurleson pushed a commit that referenced this pull request Jun 11, 2016
* Currently we're querying for buttons in the compile function, and we expecting the md-buttons to be already compiled.
But that's not correct, because those will be replaced with a button, after their compile has finished.

Querying for the md-button directive as well solves this.

Fixes #6802.

Closes #8242

Closes #8709
@devversion devversion deleted the feat/aria-disable-warnings branch June 11, 2016 15:46
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.

None yet

2 participants