Skip to content

Conversation

@karaxuna
Copy link
Contributor

@karaxuna karaxuna commented Nov 12, 2018

Fixes #5826

helpers._getParentNode = function(domNode) {
var parent = domNode.parentNode;
if (parent && parent.host) {
if (parent && Object.prototype.toString.call(parent) === '[object ShadowRoot]') {
Copy link
Member

Choose a reason for hiding this comment

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

I think I prefer if (parent && parent.toString() === '[object ShadowRoot]') { because it's better minified.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@simonbrunel simonbrunel added this to the Version 2.8 milestone Nov 12, 2018
Copy link
Member

@simonbrunel simonbrunel left a comment

Choose a reason for hiding this comment

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

Thanks @karaxuna

@simonbrunel simonbrunel requested a review from etimberg November 14, 2018 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants