0.0.6 • Published 12 years ago

node-inserted v0.0.6

Weekly downloads
28
License
-
Repository
github
Last release
12 years ago

node-inserted

A module to detect DOM insertion. It fires a new event whenever a new element is inserted into the DOM. You can add a listener to the document to get all the insertions, or you can add a listener to the parent element. It uses the idea, published in this article.

browserify

npm install node-inserted
require('node-inserted')();

var handler = function () {
  console.log('insertion occured!');
};

document.addEventListener('inserted', handler, false); // fires on every insertion
parent.addEventListener('inserted', handler, false); // fires only when childs are inserted

plain

<script type="text/javascript" src="inserted.js"></script>
0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago