Socket
Book a DemoInstallSign in
Socket

inserted-component

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inserted-component

invoke a callback when a DOM element is inserted

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
2
-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

inserted

Invoke a callback when a DOM element is inserted.

Installation

$ component install component/inserted

Example

var inserted = require('inserted');
inserted(el, function(){
  console.log('element was inserted!');
});

API

inserted(el, fn)

Invokes fn when el is inserted from the DOM.

.interval

The setInterval fallback uses inserted.interval, defaulting to 200ms.

License

MIT

Keywords

dom

FAQs

Package last updated on 11 Feb 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts