Skip to content

Instantly share code, notes, and snippets.

@skipjac
Created April 16, 2013 04:05
Show Gist options
  • Save skipjac/5393261 to your computer and use it in GitHub Desktop.
Save skipjac/5393261 to your computer and use it in GitHub Desktop.
watch for changes on DOMtree
$j('#topic_search').bind('DOMSubtreeModified', function(e) {console.log(e); console.log($j('#topic_search_result .item').length);})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment