Explorar el Código

EditorControls: Minor clean up.

Mr.doob hace 10 años
padre
commit
1dccaf093f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      examples/js/controls/EditorControls.js

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

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