Calling class method from PeriodicalExecuter

Antonio CS
Fri, 30 Nov 2007 15:50:42 -0000

Hey!

I have created a class and in the initialize function I created a
PeriodicalExecuter which must call a class method every 5 seconds.
But how do I reference the class or the class member? I can''t use this
can
I???
I have this

new PeriodicalExecuter(function(pe) {
                this.processSwap();
              }, this.transtime);


And I was writing this I thought it wouldn''t work because the this in
the
function will refer to the function itself right?

Can anyone help me out please?
Thanks :)