detacher

2.0.11 • Public • Published

Detacher Build Status Coverage Status

Sample usage

var Detacher = require('detacher'),
 
    d1 = new Detacher(),
    d2 = new Detacher(),
    d3 = new Detacher(),
 
    c = new Detacher();
 
console.log(d1.active); // true
d1.detach();
console.log(d1.active); // false
 
console.log(d2.active); // true
console.log(d3.active); // true
 
c.add(d2);
c.add(d3);
c.detach();
 
console.log(d2.active); // false
console.log(d3.active); // false

Readme

Keywords

none

Package Sidebar

Install

npm i detacher

Weekly Downloads

5

Version

2.0.11

License

Apache-2.0

Last publish

Collaborators

  • manvalls