Browse Source

Formatting tweaks.

Mr.doob 12 years ago
parent
commit
3c8c85f03c
3 changed files with 10 additions and 9 deletions
  1. 5 5
      src/cameras/Camera.js
  2. 4 3
      src/core/Color.js
  3. 1 1
      src/core/Object3D.js

+ 5 - 5
src/cameras/Camera.js

@@ -25,13 +25,13 @@ THREE.Camera.prototype.lookAt = function ( vector ) {
 	if ( this.rotationAutoUpdate === true ) {
 
 		if ( this.useQuaternion === false )  {
-			
+
 			this.rotation.setEulerFromRotationMatrix( this.matrix, this.eulerOrder );
-			
+
 		} else {
-			
-			this.quaternion.copy(this.matrix.decompose()[1]);
-			
+
+			this.quaternion.copy( this.matrix.decompose()[ 1 ] );
+
 		}
 
 	}

+ 4 - 3
src/core/Color.js

@@ -169,9 +169,10 @@ THREE.Color.prototype = {
 
 	},
 
-	getHexString: function(){
-		var str = color.getHex().toString(16);
-		return ("000000" + str).slice(-6);
+	getHexString: function () {
+
+		return ( '000000' + this.getHex().toString( 16 ) ).slice( - 6 );
+
 	},
 
 	getContextStyle: function () {

+ 1 - 1
src/core/Object3D.js

@@ -120,7 +120,7 @@ THREE.Object3D.prototype = {
 
 			} else {
 
-				this.quaternion.copy(this.matrix.decompose()[1]);
+				this.quaternion.copy( this.matrix.decompose()[ 1 ] );
 
 			}