0.0.3 • Published 11 years ago

attach v0.0.3

Weekly downloads
12
License
-
Repository
-
Last release
11 years ago

Attach

Add attach functionality to a routable object.

Build Status

Installation

$ npm install attach

Usage

Attach adds functionality to attach components to each other.

// require it
var attach = require('attach'),
    routable = require('routable'),
    EventEmitter = require('events').EventEmitter,
    parent = new EventEmitter(),
    child = new EventEmitter();

// use it on your object
routable.extend(parent);
attach.extend(parent);

routable.extend(child);

parent.defineRoute('child', '/child');
parent.attach(child);

To Do

  • Write tests
0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago