raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org
2006-May-29 14:11 UTC
[Fwd: stopping effects, help me again please]
Hi * and thanks for you responses some body help me stop effect, just last effect. Thanks! to somebody help me with: Pulsator = Class.create(); Pulsator.prototype = {initialize: function(element) { this.stopped = false; new Effect.Pulsate(element, { afterFinish: this.action.bind(this) }); },action: function(element){if(!this.stopped) new Effect.Pulsate(element, { afterFinish: this.action.bind(this) }); },stop: function(element) {this.stopped = true;} } but this solution work to stop but it lost duration feature thanks in advance rag _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs Un saludo. Raúl Andrés Dir. Gerente La tecnología es útil. Util es McTux:// www.mctux.com CL CAMINO VALDERRIBAS, 34 E-28038 Madrid Tlf/Fax: (+34) 91 501 10 90 In a free world, Who needs windows or gates?