Advertisement
kalovski

Untitled

Nov 23rd, 2015
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. function startObservation() {
  2. var
  3. /* 1) Create a MutationObserver object*/
  4. observer = new MutationObserver(
  5. function(mutations) {
  6. mutationObserverCallback(mutations);
  7. }),
  8. /* 2) Create a config object */
  9. config = {childList: true};
  10.  
  11. /* 3) Glue'em all */
  12. observer.observe(msg, config);
  13. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement