BTW this would have worked too, if you like this better:

```js
function Foo(element) {
   this.doSomething = this.doSomething.bind(this);
   on("some-event", this.doSomething);
}
```