daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top