소스 검색

Protect Clock against the closure circular reference bug

Tristan VALCKE 8 년 전
부모
커밋
97dcf8c58c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/core/Clock.js

+ 2 - 2
src/core/Clock.js

@@ -14,7 +14,7 @@ function Clock( autoStart ) {
 
 }
 
-Clock.prototype = {
+Object.assign( Clock.prototype, {
 
 	constructor: Clock,
 
@@ -67,7 +67,7 @@ Clock.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Clock };