On 22 September 2010 12:50, Kupido <[email protected]> wrote: > Hello, > I'm looking for a reliable way to call a function after the previous > one has completed. > > I'm not new to Prototype but I can't find a way to call n functions > sequentially... is Function.defer meant for this? > > Thanks in advance. >
If the functions are just normal ones, then. function1(); function2(); If the functions are methods and they return the object to which they are attached, then you can chain them. function1().function2(); -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- 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.
