Эх сурвалжийг харах

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

badlogic 8 жил өмнө
parent
commit
2585dc16ab

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