zarocknz/javascript-winwheel

Calling stop animation errors unless animation has run before

zarocknz opened this issue · 0 comments

Calling stop animation errors if the animation has not run before.

Issue is in WinwheelStopAnimation tries to kill the tween of the WinwheelToAnimate but if the animation has not run before the Winwheel to animate is null.

Add check that the wheel to animate exists before trying to make a call to kill the tween.