Sinon essaye bind ...
$(".myClass").bind("DOMSubtreeModified", function(e){
quoi que
https://jsfiddle.net/80Lq7omu/
^^
Mais au vu de la console qui hurle
Deprecation] Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event.
This event type is deprecated (
https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser.
Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility.
Consider using MutationObserver instead.
Partager