浏览代码

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

badlogic 8 年之前
父节点
当前提交
2585dc16ab
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 		var animIndex = 0;
 		widget.canvas.onclick = function () {
 		widget.canvas.onclick = function () {
 			animIndex++;
 			animIndex++;
-			let animations = widget.skeleton.data.animations;
+			var animations = widget.skeleton.data.animations;
 			if (animIndex >= animations.length) animIndex = 0;
 			if (animIndex >= animations.length) animIndex = 0;
 			widget.setAnimation(animations[animIndex].name);
 			widget.setAnimation(animations[animIndex].name);
 		}
 		}