How to pass reference to an object to anonymous function?

How to pass reference to an object to anonymous function?

Hello,

I would like to know how to pass in a reference of this to anonymous function so I can access parameters from anonymous. Here is my code:

  1. $(\"#slider\").slider(
  2.       {   min:0,
  3.           max:19,
  4.           range:'min',
  5.           stop: function(event, ui)
  6.            {
  7.                   //how to access to max???
  8.             });
Now I would like to be able to access max value from anonymous function stop.

Any help will be appreciated!

Thanks in advance.