Skip to content

Instantly share code, notes, and snippets.

@IgorGavrilenko
Last active March 5, 2021 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IgorGavrilenko/cba89f293c685d163f6feb6f53d8b160 to your computer and use it in GitHub Desktop.
Save IgorGavrilenko/cba89f293c685d163f6feb6f53d8b160 to your computer and use it in GitHub Desktop.
DOMNodeInserted
// insertedInit
$(insertedInit);
function uOrderInitInit(){
var $parent = $('.parent');
var $el = '.el';
$parent.on("DOMNodeInserted", function (event) {
$(event.target).find($el).addClass();
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment