From 2585dc16abe0559e04014dcee0b24a431b17c06f Mon Sep 17 00:00:00 2001 From: badlogic Date: Wed, 22 Mar 2017 17:30:06 +0100 Subject: [PATCH] [ts] Fixed widget example, using var instead of let --- spine-ts/widget/example/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }