diff --git a/spine-ts/widget/example/index.html b/spine-ts/widget/example/index.html index cca3009c4..a7f139b3e 100644 --- a/spine-ts/widget/example/index.html +++ b/spine-ts/widget/example/index.html @@ -81,7 +81,7 @@ new spine.SpineWidget("spine-widget", { var animIndex = 0; widget.canvas.onclick = function () { animIndex++; - let animations = widget.skeleton.data.animations; + var animations = widget.skeleton.data.animations; if (animIndex >= animations.length) animIndex = 0; widget.setAnimation(animations[animIndex].name); }