Guest User

Untitled

a guest
Sep 14th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. // jquery-shadowRoot.js v1
  2. jQuery.fn.extend({
  3. shadowRoot: function() {
  4. let shadowRoot = $();
  5. $(this).each(function() {
  6. if ($(this)[0].shadowRoot != null) {
  7. shadowRoot = shadowRoot.add($(this)[0].shadowRoot);
  8. };
  9. });
  10. return shadowRoot;
  11. }
  12. });
Add Comment
Please, Sign In to add comment