Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- _.map($('[data-widget-collection=data-widget-collection]'), function (node) {
- let observer = new MutationObserver(function (mutations) {
- mutations.forEach(function (mutation) {
- if (mutation.addedNodes.length) {
- console.log(mutation);
- }
- });
- });
- observer.observe(node, {subtree: true, childList: true});
- });
- });
Add Comment
Please, Sign In to add comment