X Tutup
Skip to content

fix(projection): allow to project to a non text node#3241

Closed
tbosch wants to merge 1 commit intoangular:masterfrom
tbosch:project-text
Closed

fix(projection): allow to project to a non text node#3241
tbosch wants to merge 1 commit intoangular:masterfrom
tbosch:project-text

Conversation

@tbosch
Copy link
Copy Markdown
Contributor

@tbosch tbosch commented Jul 23, 2015

We already had a test for this, but too low level that it did not catch this null value in hasNativeShadowRoot

Fixes #3230

@tbosch tbosch added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jul 23, 2015
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this field strictly a boolean or it has three states - null | false | true?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you set it to false in the constructor, like

onlySelf = isPresent(onlySelf) ? onlySelf : false;

@rkirov rkirov added pr_state: LGTM and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 23, 2015
We already had a test for this, but too low level that it did not catch this null value in `hasNativeShadowRoot`

Fixes angular#3230
@tbosch tbosch closed this in b44b06c Jul 23, 2015
@tbosch tbosch deleted the project-text branch July 23, 2015 21:29
@angular-automatic-lock-bot
Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DomElementBinder#hasNativeShadowRoot is null, not false, resulting in an NPE in...

3 participants

X Tutup