Hi,
just wanted to let you know that it seems that clear() on a timeline does not remove eventCallbacks. It doesn't matter if they are set by the constructor or afterwards with eventCallback('eventtype', function)
I'm using latest Chrome and the latest TweenMax & TimelineMax JS versions on Windows 8 (shouldn't matter)
just try the following:
var tl = new TimelineMax({onComplete: function() {console.log('complete');}});
tl.eventCallback('onComplete'); //returns function
tl.eventCallback('onReverseComplete', function() {console.log('reversed');});
tl.clear();
tl.eventCallback('onReverseComplete'); // still there
tl.eventCallback('onComplete'); // still there
Although eventCallbacks get not killed, the containing tweens and timelines are removed and the totalDuration is 0 afterwards.
Would be nice if someone could confirm that!