Open skmasq opened 11 years ago
I'm having a similar problem whereby calling the transition function seems to remove certain properties from the options object. For example, I want to define an animation like this:
var myAnimation = {
opacity: 1,
scale: 1,
easing: "easeIn",
delay: 150
};
and then call it like this:
$(".foo").transition(myAnimation, 300);
But after calling transition({...})
the object gets changed to:
{
opacity: 1,
scale: 1,
};
What's the issue? Why does calling transition modify the passed in object?
If found a bug.
If I create obj:
and I pass it like this:
it overwrites my obj like so:
and after awhile it's like this: