Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // jquery-shadowRoot.js v1
- jQuery.fn.extend({
- shadowRoot: function() {
- let shadowRoot = $();
- $(this).each(function() {
- if ($(this)[0].shadowRoot != null) {
- shadowRoot = shadowRoot.add($(this)[0].shadowRoot);
- };
- });
- return shadowRoot;
- }
- });
Add Comment
Please, Sign In to add comment