Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 499 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 499 Bytes

jquery-mutationobserver

A jQuery plugin to add notification of DOM mutation events issued through jQuery's own mutation functions.

With DOMNodeInserted deprecated and MutationObserver not yet gaining full browser support, this plugin provides a simple way to receive notification when a descendant DOM node is mutated.

Usage:

var listenerFn = function() {
  alert('mutation!')
};
$(selector).mutationObserver(listenerFn);
$(selector).append($('<div/>'))