Browse Source

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

badlogic 8 years ago
parent
commit
2585dc16ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spine-ts/widget/example/index.html

+ 1 - 1
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);
 		}