madrobby / scripty2

scripty2: for a more delicious web
http://scripty2.com/
Other
516 stars 57 forks source link

S2.FX.Parallel fail to implement options #19

Open rumble opened 13 years ago

rumble commented 13 years ago

The documentation on this page http://scripty2.com/doc/scripty2%20fx/s2/fx/parallel.html suggests that effects within a parallel can have individual delay and duration properties.

In the example shown you would expect the first effect to run for 0.9 seconds after a delay of 0.1 second and the second effect to run for 0.75 seconds after a delay of 0.25 seconds.

Running the code results in both effects running for a duration of 1 second with no delay on either.

Also worth noting that the individual 'after' functions from each effect also fail to run.

Is this a bug in the implementation of S2.FX.Parallel, or a bug in the documentation. If it is a bug in the documentation, then could this parallel be extended to use these options?

Thanks.