Replace...
this.myHandler = function(){
this.innerFunction();
};
... with ...
var self = this;
this.myHandler = function() {
self.innerFunction();
};
See this article by Crockford. Cite:
By convention, we make a private
that
variable. This is used to make the object available to the private methods. This is a workaround for an error in the ECMAScript Language Specification which causesthis
to be set incorrectly for inner functions.