Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo Fragomeni committed Jun 3, 2012
1 parent 6430efa commit 79a9bd5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ $npm install eventvat
Each new instance of `EventVat` is a hash. There are lots of convenient methods attached to each new instance.

## events
EventVat uses <a href="https://github.com/hij1nx/EventEmitter2">EventEmitter</a>. Listeners can attached to an EventVat object. An EventVat object can emit and event and a listener will respond. An event has three characteristics, the event name, a listener and an associated data key or wildcard.
EventVat uses <a href="https://github.com/hij1nx/EventEmitter2">EventEmitter2</a>. Listeners can attached to an EventVat object. An EventVat object can emit and event and a listener will respond. An event has three characteristics, the event name, a listener and an associated data key or wildcard.

```javascript
var vat = EventVat();

vat.on('get foo', function(key, value)

vat.on('get foo', function(key, value) {

console.log('`' + key + '` has the value: `' + value + '`');
});
Expand Down

0 comments on commit 79a9bd5

Please sign in to comment.