#23 new
rvagg

S2.FX.Base modifies passed 'options' object leading to unexpected behaviour

Reported by rvagg | November 24th, 2010 @ 01:32 PM

This pair executes in parallel:

$('e1').morph('opacity:0', { duration: 1 }); $('e2').morph('opacity:1', { duration: 1 });

This pair is serial:

var options = { duration: 1 };
$('e1').morph('opacity:0', options); $('e2').morph('opacity:1', options);

Because S2.FX.Base writes a 'queue' property into options I guess. Perhaps options should be run through Object.clone/extend at either S2.FX.Base.setOptions() or at the return of S2.FX.parseOptions() if it's a {}?

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

http://github.com/madrobby/scripty2

People watching this ticket

Pages