Răsfoiți Sursa

Merge branch 'unittests' of github.com:simonThiele/three.js into unittests

simonThiele 10 ani în urmă
părinte
comite
87eba598a3
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      src/core/Clock.js

+ 3 - 3
src/core/Clock.js

@@ -20,7 +20,7 @@ THREE.Clock.prototype = {
 
 
 	start: function () {
 	start: function () {
 
 
-		this.startTime = this.getNow();
+		this.startTime = this._getNow();
 
 
 		this.oldTime = this.startTime;
 		this.oldTime = this.startTime;
 		this.running = true;
 		this.running = true;
@@ -53,7 +53,7 @@ THREE.Clock.prototype = {
 
 
 		if ( this.running ) {
 		if ( this.running ) {
 
 
-			var newTime = this.getNow();
+			var newTime = this._getNow();
 
 
 			diff = 0.001 * ( newTime - this.oldTime );
 			diff = 0.001 * ( newTime - this.oldTime );
 			this.oldTime = newTime;
 			this.oldTime = newTime;
@@ -66,7 +66,7 @@ THREE.Clock.prototype = {
 
 
 	},
 	},
 
 
-	getNow: function () {
+	_getNow: function () {
 		var now = self.performance !== undefined && self.performance.now !== undefined
 		var now = self.performance !== undefined && self.performance.now !== undefined
 			? self.performance.now()
 			? self.performance.now()
 			: Date.now();
 			: Date.now();