I have a class (or function-containing object; I\'ve heard that there is no such thing as a Javascript class) called Foo, with an event handler that is attached to a click e
You need to bind the function's context; otherwise this will be the global object:
this
$('element').click($.proxy(this.eventHandler, this));
In a modern browser you can also use Function.prototype.bind:
Function.prototype.bind
$('element').click(this.eventHandler.bind(this))