There isn't PeriodicalExecuter#start method its
PeriodicalExecuter#registerCallback

You can do:

<code>
x.stop();
x.frequency = 1;
x.registerCallback();
</code>

You can also do:

<code>
PeriodicalExecuter.addMethods({
  changeFrequency: function(frequency){
    this.stop();
    this.frequency = 1;
    this.registerCallback();
  }
});
</code>

an then just call:

<code>
x.changeFrequency(1);
x.changeFrequency(whatever);
</code>

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.

Reply via email to