Browse Source

Protect Clock against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
97dcf8c58c
1 changed files with 2 additions and 2 deletions
  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,
 	constructor: Clock,
 
 
@@ -67,7 +67,7 @@ Clock.prototype = {
 
 
 	}
 	}
 
 
-};
+} );
 
 
 
 
 export { Clock };
 export { Clock };