```javascript
var EventEmitter = require('events').EventEmitter;
var util = require('util');
function SomeClass() {
  this.someAttribute = 'foo';
  EventEmitter.call(this);
}
util.inherits(SomeClass, EventEmitter);

SomeClass.prototype.emitTest = function() {
  this.on('test', this.react);
  this.emit('test');
};

SomeClass.prototype.react = function() {
  console.log('~~reacting with this equal to:');
  console.log(this);
};

var someClass = new SomeClass();
someClass.emitTest();
```

```
[16:10:46]jburkhart@:/tmp$ node test.js
~~reacting with this equal to:
{ someAttribute: 'foo', _events: { test: [Function] } }
```