Browse Source

EditorControls: Minor clean up.

Mr.doob 9 năm trước cách đây
mục cha
commit
1dccaf093f

+ 2 - 2
examples/js/controls/EditorControls.js

@@ -272,7 +272,7 @@ THREE.EditorControls = function ( object, domElement ) {
 		event.preventDefault();
 		event.preventDefault();
 		event.stopPropagation();
 		event.stopPropagation();
 
 
-		var getClosest = function( touch, touches ) {
+		function getClosest( touch, touches ) {
 
 
 			var closest = touches[ 0 ];
 			var closest = touches[ 0 ];
 
 
@@ -284,7 +284,7 @@ THREE.EditorControls = function ( object, domElement ) {
 
 
 			return closest;
 			return closest;
 
 
-		};
+		}
 
 
 		switch ( event.touches.length ) {
 		switch ( event.touches.length ) {