Browse Source

Update Clock.js

change getNow -> _getNow
Simon Thiele 10 years ago
parent
commit
fb8da4c635
1 changed files with 3 additions and 3 deletions
  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();