Guest User

Untitled

a guest
Mar 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $(function () {
  2. _.map($('[data-widget-collection=data-widget-collection]'), function (node) {
  3. let observer = new MutationObserver(function (mutations) {
  4. mutations.forEach(function (mutation) {
  5. if (mutation.addedNodes.length) {
  6. console.log(mutation);
  7. }
  8. });
  9. });
  10.  
  11. observer.observe(node, {subtree: true, childList: true});
  12. });
  13. });
Add Comment
Please, Sign In to add comment