I have a method in the class and in this method. I have a click event handler in a div element:
function MyClass(container)
{
this.Container=container;
this.PrepareHandlers = function()
{
$('#Div1').click(function() {
alert(this.Container);
});
};
}
But since im is in the handler, "this" is an element click. Is access to the object of the object accessible from the handler declared inside the method?
source
share