Browse Source

Minor clean up.

Mr.doob 10 years ago
parent
commit
df9c38f03a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/Three.js

+ 4 - 4
src/Three.js

@@ -33,14 +33,14 @@ if ( Function.prototype.name === undefined && Object.defineProperty !== undefine
 
 	Object.defineProperty( Function.prototype, 'name', {
 
-		get: function() {
+		get: function () {
 
-			var name = this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];
-			return name;
+			return this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];
 
 		}
 
-	});
+	} );
+
 }
 
 // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.button