소스 검색

[ts][player] Fixed constructor.

badlogic 6 년 전
부모
커밋
ba33942a45
3개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      spine-ts/build/spine-player.js
  2. 0 0
      spine-ts/build/spine-player.js.map
  3. 1 0
      spine-ts/player/src/Player.ts

+ 2 - 0
spine-ts/build/spine-player.js

@@ -9574,6 +9574,8 @@ var spine;
             this.cancelId = 0;
             if (typeof parent === "string")
                 this.parent = document.getElementById(parent);
+            else
+                this.parent = parent;
             this.parent.appendChild(this.render());
         }
         SpinePlayer.prototype.validateConfig = function (config) {

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
spine-ts/build/spine-player.js.map


+ 1 - 0
spine-ts/player/src/Player.ts

@@ -314,6 +314,7 @@
 
 		constructor(parent: HTMLElement | string, private config: SpinePlayerConfig) {
 			if (typeof parent === "string") this.parent = document.getElementById(parent);
+			else this.parent = parent;
 			this.parent.appendChild(this.render());
 		}
 

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.