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 :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---