Browse Source

Clean up.

Mr.doob 10 years ago
parent
commit
c14b259b15
3 changed files with 9 additions and 9 deletions
  1. 2 2
      src/Three.js
  2. 1 1
      src/extras/core/Path.js
  3. 6 6
      src/extras/geometries/ExtrudeGeometry.js

+ 2 - 2
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 );
 
 		};
 

+ 1 - 1
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 ) );
 
 			}
 

+ 6 - 6
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