I am wanting to be sure that I am going about cleaning up a TimelineMax completely.
Can you please review and let me know if this code leaves anything straggling or is otherwise in need of improvement?
this.timeline.clear( true );
this.timeline.eventCallback( 'onComplete', null ); // : Function
this.timeline.onCompleteParams.length = 0; // : Array
this.timeline.onCompleteScope = null; // : Object
this.timeline.eventCallback( 'onRepeat', null ); // : Function
this.timeline.onRepeatParams.length = 0; // : Array
this.timeline.onRepeatScope = null; // : Object
this.timeline.eventCallback( 'onReverseComplete', null ); // : Function
this.timeline.onReverseCompleteParams.length = 0; // : Array
this.timeline.onReverseCompleteScope = null; // : Object
this.timeline.eventCallback( 'onStart', null ); // : Function
this.timeline.onStartParams.length = 0; // : Array
this.timeline.onStartScope = null; // : Object
this.timeline.eventCallback( 'onUpdate', null ); // : Function
this.timeline.onUpdateParams.length = 0; // : Array
this.timeline.onUpdateScope = null; // : Object
this.timeline.tweens.length = 0; // : Array
this.timeline = null;
Thank you for any guidance you can give me.