-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
40698660: Make asJquery() work within a shadow DOM #529
40698660: Make asJquery() work within a shadow DOM #529
Conversation
a515cdb
to
1de4ef0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 4 of 4 files at r1, 1 of 1 files at r2, 4 of 4 files at r3, 1 of 1 files at r4, 4 of 4 files at r5, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @benemotz, @BenjaminVanRyseghem, @DamienCassou, @danglotb, @JohanBriglia, and @ValentinaVasile)
src/test/widgetTest.js
line 258 at r5 (raw file):
it("returns true if the widget is attached to the DOM under a special shadow host", () => { expect.assertions(1);
NIT: It's not crystal clear why this have to be used. May be a comment like "making sure promise is called" could help?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 4 of 4 files at r1, 1 of 1 files at r2, 4 of 4 files at r3, 1 of 1 files at r4, 4 of 4 files at r5, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @benemotz, @BenjaminVanRyseghem, @danglotb, @josquindebaz, and @ValentinaVasile)
src/test/widgetTest.js
line 258 at r5 (raw file):
Previously, josquindebaz (Josquin Debaz) wrote…
NIT: It's not crystal clear why this have to be used. May be a comment like "making sure promise is called" could help?
+1
…ow trees In the previous version, widget.asJQuery() would only return something useful if the widget is directly attached to the document. If the widget is within a shadow tree, asJQuery() wouldn't work. This commit makes asJQuery() work even if widget is within a shadow tree if and only if: - this tree is attached to a host node with widgetjs-shadow=document, - and there is only one such node in the DOM This limitation on the host avoids impacting too much the performance.
1de4ef0
to
5a2ad83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @benemotz, @BenjaminVanRyseghem, @danglotb, and @ValentinaVasile)
src/test/widgetTest.js
line 258 at r5 (raw file):
Previously, JohanBriglia wrote…
+1
done
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)