views:

393

answers:

1

I'm using Prototype 1.6. I create a new Form.Element.Observer, but is there a way to then remove it/stop it? Thanks

+2  A: 

I think this should work :

var obs = new Form.Element.Observer(element, frequency, callback);
obs.stop();
Fabien Ménager
Yep, but there is one on PeriodicalExecuter : Form.Element.Observer inherits Abstract.TimedObserver which inherits PeriodicalExecuter ;)
Fabien Ménager
You're right, because I was looking at 1.5.21.6.1 inheirits it from PeriodicalExecuter properly.
alamar
Perfect - thanks so much.
Paul