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

Conversation

@Splaktar
Copy link
Contributor

@Splaktar Splaktar commented Mar 7, 2020

PR Checklist

Please check that your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added or this is not a bug fix / enhancement
  • Docs have been added, updated, or were not required

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Enhancement
[ ] Documentation content changes
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Exceptions are thrown when using Contact Chips when an app is configured for production mode ($compileProvider.debugInfoEnabled(false)). This is a regression in 1.1.11.

Issue Number:
Fixes #11699

What is the new behavior?

  • fix exception when debugInfoEnabled(false) is set
  • remove unused variables in tests
  • remove commented out and unused code in tests

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

I didn't add a test since we don't run our tests with $compileProvider.debugInfoEnabled(false).

element.find('md-chips').scope().$watchCollection('$mdChipsCtrl.items', function() {
is depending upon debug info being enabled. More details in the AngularJS Production Guide.

…ler scope

- fix exception when `debugInfoEnabled(false)` is set
- remove unused variables in tests
- remove commented out and unused code in tests

Fixes #11699
@googlebot googlebot added the cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ label Mar 7, 2020
@Splaktar Splaktar self-assigned this Mar 7, 2020
@Splaktar Splaktar added browser: IE This issue is specific to Internet Explorer P2: required Issues that must be fixed. severity: regression This issue is related to a regression type: bug labels Mar 7, 2020
@Splaktar Splaktar added this to the 1.1.22 milestone Mar 7, 2020
@Splaktar Splaktar requested review from jelbourn and mmalerba March 7, 2020 12:23
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

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

LGTM

@mmalerba mmalerba added pr: lgtm This PR has been approved by the reviewer pr: merge ready This PR is ready for a caretaker to review labels Mar 8, 2020
@Splaktar Splaktar merged commit 2f77095 into master Mar 9, 2020
@Splaktar Splaktar deleted the contact-chips-exception-debug-info-false branch March 9, 2020 23:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

browser: IE This issue is specific to Internet Explorer cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ P2: required Issues that must be fixed. pr: lgtm This PR has been approved by the reviewer pr: merge ready This PR is ready for a caretaker to review severity: regression This issue is related to a regression type: bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

contact-chips: Remove icon button is not rendered in IE11

3 participants