Skip to content

Commit

Permalink
Updated builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Sep 23, 2015
1 parent 2bd80ed commit 276394c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
16 changes: 10 additions & 6 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -7469,11 +7469,17 @@ THREE.Clock.prototype = {

constructor: THREE.Clock,

_now: function () {

return self.performance !== undefined && self.performance.now !== undefined
? self.performance.now()
: Date.now();

},

start: function () {

this.startTime = self.performance !== undefined && self.performance.now !== undefined
? self.performance.now()
: Date.now();
this.startTime = this._now();

this.oldTime = this.startTime;
this.running = true;
Expand Down Expand Up @@ -7506,9 +7512,7 @@ THREE.Clock.prototype = {

if ( this.running ) {

var newTime = self.performance !== undefined && self.performance.now !== undefined
? self.performance.now()
: Date.now();
var newTime = this._now();

diff = 0.001 * ( newTime - this.oldTime );
this.oldTime = newTime;
Expand Down
4 changes: 2 additions & 2 deletions build/three.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/core/Clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ THREE.Clock.prototype = {

_now: function () {

return self.performance !== undefined && self.performance.now !== undefined
return self.performance !== undefined && self.performance.now !== undefined
? self.performance.now()
: Date.now();

Expand Down

0 comments on commit 276394c

Please sign in to comment.