From c14b259b15e5d1d7ea77afd5f35f7a5016b93a8f Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Fri, 24 Jul 2015 22:21:28 -0400 Subject: [PATCH] Clean up. --- src/Three.js | 4 ++-- src/extras/core/Path.js | 2 +- src/extras/geometries/ExtrudeGeometry.js | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Three.js b/src/Three.js index d0c82b9dea..56c12e352a 100644 --- a/src/Three.js +++ b/src/Three.js @@ -33,7 +33,7 @@ if ( typeof module === 'object' ) { var currTime = Date.now(), timeToCall = Math.max( 0, 16 - ( currTime - lastTime ) ); var id = self.setTimeout( function () { - callback( currTime + timeToCall ) + callback( currTime + timeToCall ); }, timeToCall ); lastTime = currTime + timeToCall; @@ -47,7 +47,7 @@ if ( typeof module === 'object' ) { self.cancelAnimationFrame = function ( id ) { - self.clearTimeout( id ) + self.clearTimeout( id ); }; diff --git a/src/extras/core/Path.js b/src/extras/core/Path.js index 112c4aaed0..84daff0a4b 100644 --- a/src/extras/core/Path.js +++ b/src/extras/core/Path.js @@ -338,7 +338,7 @@ THREE.Path.prototype.getPoints = function( divisions, closedPath ) { for ( j = 1; j <= n; j ++ ) { - points.push( spline.getPointAt( j / n ) ) ; + points.push( spline.getPointAt( j / n ) ); } diff --git a/src/extras/geometries/ExtrudeGeometry.js b/src/extras/geometries/ExtrudeGeometry.js index 77befdae16..8950520c22 100644 --- a/src/extras/geometries/ExtrudeGeometry.js +++ b/src/extras/geometries/ExtrudeGeometry.js @@ -120,7 +120,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) { } - // Variables initialization + // Variables initialization var ahole, h, hl; // looping of holes var scope = this; @@ -132,7 +132,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) { var vertices = shapePoints.shape; var holes = shapePoints.holes; - var reverse = ! THREE.Shape.Utils.isClockWise( vertices ) ; + var reverse = ! THREE.Shape.Utils.isClockWise( vertices ); if ( reverse ) { @@ -359,8 +359,8 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) { z = bevelThickness * ( 1 - t ); //z = bevelThickness * t; - bs = bevelSize * ( Math.sin ( t * Math.PI / 2 ) ) ; // curved - //bs = bevelSize * t ; // linear + bs = bevelSize * ( Math.sin ( t * Math.PI / 2 ) ); // curved + //bs = bevelSize * t; // linear // contract shape @@ -459,7 +459,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) { t = b / bevelSegments; z = bevelThickness * ( 1 - t ); //bs = bevelSize * ( 1-Math.sin ( ( 1 - t ) * Math.PI/2 ) ); - bs = bevelSize * Math.sin ( t * Math.PI / 2 ) ; + bs = bevelSize * Math.sin ( t * Math.PI / 2 ); // contract shape @@ -514,7 +514,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) { if ( bevelEnabled ) { - var layer = 0 ; // steps + 1 + var layer = 0; // steps + 1 var offset = vlen * layer; // Bottom faces -- GitLab