onCompleteParams are null for tweenlite in GSAP Posted May 12, 2013 Hi, I'm trying to do an infinite random tween using the following code TweenLite.to(box, 2, {left:Math.random() * 600,onComplete:completeHandler, onCompleteParams:box}); and the handler is function completeHandler(obj) { if (obj) TweenLite.to(obj, 2, {left:Math.random() * 600,onComplete:completeHandler, onCompleteParams:obj});} but after 2 tweens, the parameter becomes null. I can use this.target instead, but there seems to be a bug thanks Jon
onCompleteParams are null for tweenlite
in GSAP
Posted
Hi,
I'm trying to do an infinite random tween using the following code
TweenLite.to(box, 2, {left:Math.random() * 600,onComplete:completeHandler, onCompleteParams:box});
and the handler is
function completeHandler(obj) {
if (obj)
TweenLite.to(obj, 2, {left:Math.random() * 600,onComplete:completeHandler, onCompleteParams:obj});
}
but after 2 tweens, the parameter becomes null. I can use this.target instead, but there seems to be
a bug
thanks
Jon