> I have to write the same code two times, one with effects (with code on
> afterFinish callback), and other without them (linear flow), because after
> showing the div I need to execute some script but with the div totally 
> visible.

Try this:

var action = function(){
  // Do something
}

 if ( this.hasEffects )
 {
       showEffect( myDiv,
       {
             afterFinish: action
       }
 }
 else
 {
       showEffect( myDiv );
       action();
 }

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to