Created
May 22, 2015 05:46
-
-
Save geraldvillorente/81c45703765282c60b52 to your computer and use it in GitHub Desktop.
A decent way to avoid using setTimeout when checking for html element changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('selector', context).bind("DOMSubtreeModified", function() { | |
// Do something. | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment