Events and Object

Events and Object

Hi all,

I have an issue that I really cannot find out how to solve.

Here is an example of what I'd like to do :
  1. function object() {

  2.         this.init = function() {
  3.                 $(".object").click(function(event)  {
  4.                         var val = $(this).val();
  5.                         this.process(val);
  6.                 });
  7.         }
  8.         this.process = function(val) {
  9.                // DO SOMETHING

  10.         }
  11. }

Not surprisingly, this is not working. In fact, the function in the click event cannot find the method this.process.
Is there a way to call my process method here ?

I really need to keep this process method in my object and cannot move it out of the object.
How can I do ?

Thanks for your time,
Olivier