[ts] Fixed widget example, using var instead of let

This commit is contained in:
badlogic 2017-03-22 17:30:06 +01:00
parent 0ebff170bf
commit 2585dc16ab

View File

@ -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);
}