rstacruz / jquery.transit

Super-smooth CSS3 transformations and transitions for jQuery
http://ricostacruz.com/jquery.transit
7.29k stars 863 forks source link

setFromString does not copy the value into args #172

Open gamma opened 10 years ago

gamma commented 10 years ago

the setFromString method should use val.slice() when assigning the value to args or the array will not be copied and consequently be modified with the unshift operation.

This produces errors on multi-element calls - which do not get animated then.

e.g: $("h1,h2").css({translate:[0,50]}); will only be applied to the first element